Skip to content

bj pr merge

Merge a pull request; transition the linked Jira ticket to done.

Synopsis

bj pr merge [OPTIONS] [PR_ID]

Description

Merge a pull request. If the PR's branch carries a Jira key, the linked ticket is transitioned to the configured done state on success.

Arguments

Argument Description
PR_ID PR id (default: current branch).

Options

Option Description
--merge Merge commit.
-s, --squash Squash merge.
--fast-forward Fast-forward merge.
-d, --delete-branch Close source branch.
-m, --message <text> Merge commit message.
--no-jira Skip Jira transition.
-y, --yes Skip the confirmation prompt.
--dry-run Print actions; write nothing.
-R, --repo <text> Target repo as WORKSPACE/REPO.
--json Output raw JSON.
-q, --jq <text> Filter JSON with a jq expression.

Examples

bj pr merge --squash --delete-branch
bj pr merge 42 --dry-run

See also