Skip to content

feat(ci): add --skip-push flag to bit ci merge command#10171

Merged
davidfirst merged 2 commits intomasterfrom
feat/skip-push-flag
Jan 29, 2026
Merged

feat(ci): add --skip-push flag to bit ci merge command#10171
davidfirst merged 2 commits intomasterfrom
feat/skip-push-flag

Conversation

@davidfirst
Copy link
Copy Markdown
Member

Add --skip-push flag to bit ci merge command that allows users to skip the git push step.

This is useful for organizations with security requirements where CI pipelines need to handle the push step separately with their own authentication/authorization.

Usage:

bit ci merge --skip-push

The command will still:

  • Commit the changes locally
  • Run git pull --rebase to ensure the commit is on top of latest remote changes

But will skip the git push, allowing the CI script to handle it separately.

Allow users to skip the git push step when running bit ci merge,
useful when CI pipelines handle the push separately for security reasons.
Copilot AI review requested due to automatic review settings January 29, 2026 15:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a --skip-push flag to the bit ci merge command, allowing users to skip the git push step while keeping other git operations (commit and pull --rebase) intact. This is particularly useful for organizations with security requirements where CI pipelines need to handle authentication and authorization for the push step separately.

Changes:

  • Added skipPush optional boolean parameter to the bit ci merge command and its runtime implementation
  • Implemented conditional logic to skip git push when the flag is set, while still performing git pull --rebase
  • Added appropriate user-facing logging to indicate when push is being skipped

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
scopes/git/ci/commands/merge.cmd.ts Added skipPush option to Options type, CLI flag definition, and passed it through to the runtime mergePr function
scopes/git/ci/ci.main.runtime.ts Added skipPush parameter to mergePr function signature and implemented conditional logic to skip git push with informative logging

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@davidfirst davidfirst enabled auto-merge (squash) January 29, 2026 15:25
@davidfirst davidfirst merged commit 0e281db into master Jan 29, 2026
12 checks passed
@davidfirst davidfirst deleted the feat/skip-push-flag branch January 29, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants