feat(ci): add --skip-push flag to bit ci merge command#10171
Merged
davidfirst merged 2 commits intomasterfrom Jan 29, 2026
Merged
feat(ci): add --skip-push flag to bit ci merge command#10171davidfirst merged 2 commits intomasterfrom
davidfirst merged 2 commits intomasterfrom
Conversation
Allow users to skip the git push step when running bit ci merge, useful when CI pipelines handle the push separately for security reasons.
Contributor
There was a problem hiding this comment.
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
skipPushoptional boolean parameter to thebit ci mergecommand and its runtime implementation - Implemented conditional logic to skip
git pushwhen the flag is set, while still performinggit 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.
GiladShoham
approved these changes
Jan 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
--skip-pushflag tobit ci mergecommand 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:
The command will still:
git pull --rebaseto ensure the commit is on top of latest remote changesBut will skip the
git push, allowing the CI script to handle it separately.