bk build create accepts pull request details
Introduced 2026-10-29 · score 0.95
HOW TO USE IT
When creating a Buildkite build for a pull request, pass its number, base branch, and source repository to `bk build create`.
bk build create --pipeline <pipeline> --pull-request-id <number> --pull-request-base-branch <base-branch> --pull-request-repository <repository-url> --yesWHY THIS HELPS
Create a Buildkite build associated with a pull request.
REQUIREMENTS AND LIMITATIONS
- Version: v3.67.0
- Non-interactive: Build creation prompts for confirmation; `--yes` skips it. The build URL is printed to stdout.
- --pull-request-id: Pull request number.
- --pull-request-base-branch: Pull request base branch.
- --pull-request-repository: Repository URL for the pull request source branch.
- --pipeline: Pipeline slug or org/pipeline; needed if the pipeline cannot be inferred.
- --yes: Skip the confirmation prompt.
- Prerequisite: Install and authenticate the Buildkite CLI with your organization.
FIRST-PARTY EVIDENCE
- https://github.com/buildkite/cli/releases/tag/v3.67.0
- https://github.com/buildkite/cli/pull/1074
- https://raw.githubusercontent.com/buildkite/cli/v3.67.0/cmd/build/create.go
- https://buildkite.com/docs/pipelines/starting-a-new-build
Check the installed version and the source before using it. Entry JSON