client package¶
Submodules¶
client.client_callback module¶
client.client_webhook module¶
-
class
client.client_webhook.
ClientWebhook
(commit_data=None)[source]¶ Bases:
object
-
create_build_log
(commit_id, commit_message, commit_url, compare_url, job, pusher_username, repo_name, repo_owner)[source]¶ Parameters: - commit_id (string) –
- commit_message (string) –
- commit_url (string) –
- compare_url (string) –
- job (TxJob) –
- pusher_username (string) –
- repo_name (string) –
- repo_owner (string) –
Return dict:
-
download_repo
(commit_url, repo_dir)[source]¶ Downloads and unzips a git repository from Github or git.door43.org
Parameters: - commit_url (str|unicode) – The URL of the repository to download
- repo_dir (str|unicode) – The directory where the downloaded file should be unzipped
Returns: None
-
send_payload_to_converter
(payload, converter)[source]¶ Parameters: - payload (dict) –
- converter (TxModule) –
Return bool:
-
send_payload_to_linter
(payload, linter)[source]¶ Parameters: - payload (dict) –
- linter (TxModule) –
Return bool:
-
send_request_to_converter
(job, converter)[source]¶ Parameters: - job (TxJob) –
- converter (TxModule) –
Return bool:
-
send_request_to_linter
(job, linter, commit_url, extra_payload=None)[source]¶ Parameters: - job (TxJob) –
- linter (TxModule) –
- commit_url (string) –
- extra_payload (dict) –
Return bool:
-
update_project_json
(commit_id, job, repo_name, repo_owner)[source]¶ Parameters: - commit_id (string) –
- job (TxJob) –
- repo_name (string) –
- repo_owner (string) –
Returns:
-