8000 Add pipeline_id to trigger_bitrise_build in main.py by davnag · Pull Request #9 · bitrise-io/bitrise-mcp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add pipeline_id to trigger_bitrise_build in main.py #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ Example configuration:
- Arguments:
- `app_slug`: Identifier of the Bitrise app
- `branch` (optional): The branch to build (default: main)
- `pipeline_id` (optional): The pipeline to build
- `workflow_id` (optional): The workflow to build
- `commit_message` (optional): The commit message for the build
- `commit_hash` (optional): The commit hash for the build
Expand Down
6 changes: 6 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ async def trigger_bitrise_build(
default=None,
description="The workflow to build",
),
pipeline_id: str = Field(
default=None,
description="The pipeline to build",
),
commit_message: str = Field(
default=None,
description="The commit message for the build",
Expand All @@ -402,6 +406,8 @@ async def trigger_bitrise_build(
url = f"{BITRISE_API_BASE}/apps/{app_slug}/builds"
build_params = {"branch": branch}

if pipeline_id:
build_params["pipeline_id"] = pipeline_id
if workflow_id:
build_params["workflow_id"] = workflow_id
if commit_message:
Expand Down
0