From 3630f2db89f4fc462e1b4189fcb1db824e4d6b02 Mon Sep 17 00:00:00 2001 From: Tania <92768464+Tonayya@users.noreply.github.com> Date: Fri, 1 Sep 2023 16:41:00 +1000 Subject: [PATCH] Update run.py Just added these 3 parameters to provide support for triggering CI runs in Github, Gitlab, and AD. As per [this PR](https://github.com/dbt-labs/dbt-cloud/pull/8303) in dbt-cloud. --- dbt_cloud/command/job/run.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dbt_cloud/command/job/run.py b/dbt_cloud/command/job/run.py index 2e7c2da..98afacf 100644 --- a/dbt_cloud/command/job/run.py +++ b/dbt_cloud/command/job/run.py @@ -20,6 +20,15 @@ class DbtCloudJobRunCommand(DbtCloudAccountCommand): git_branch: Optional[str] = Field( description="The git branch to check out before running this job" ) + azure_pull_request_id: Optional[int] = Field( + description="Include this for the run to be treated as CI and not cancel the previous run" + ) + github_pull_request_id: Optional[int] = Field( + description="Include this for the run to be treated as CI and not cancel the previous run" + ) + gitlab_merge_request_id: Optional[int] = Field( + description="Include this for the run to be treated as CI and not cancel the previous run" + ) schema_override: Optional[str] = Field( description="Override the destination schema in the configured target for this job" )