feat(ci): add --dry-run flag to bit ci pr#10248
Merged
Merged
Conversation
GiladShoham
approved these changes
Mar 24, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a --dry-run (-d) option to the bit ci pr command to allow running the PR snap pipeline locally while skipping the remote-finalization steps (remote lane deletion/rename + export), enabling safer local debugging of the CI PR flow.
Changes:
- Add
--dry-runflag tobit ci prCLI command and plumb it through to CI runtime. - Implement early-return behavior in
CiMain.snapPrCommit()after snap output whendryRunis set, skipping export/finalization.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| scopes/git/ci/commands/pr.cmd.ts | Adds --dry-run option and forwards dryRun into snapPrCommit() execution. |
| scopes/git/ci/ci.main.runtime.ts | Introduces dryRun handling to skip lane finalization/export after a successful snap. |
Clarify help text that build only runs with --build flag. Keep temp lane on successful dry-run for debugging, and log how to remove it.
davidfirst
added a commit
that referenced
this pull request
Mar 25, 2026
Adds a `--dry-run` (`-d`) flag to `bit ci pr` that runs the full pipeline (snap + build) but skips exporting to remote. This lets developers debug the CI PR pipeline locally without side effects. When `--dry-run` is set, the command performs status verification, import, lane creation, and snap as usual, then logs a summary and returns early — skipping the remote lane deletion, rename, and export steps. The `finally` cleanup block still runs normally. Follows the same pattern as `--skip-push` in `bit ci merge`.
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.
Adds a
--dry-run(-d) flag tobit ci prthat runs the full pipeline (snap + build) but skips exporting to remote. This lets developers debug the CI PR pipeline locally without side effects.When
--dry-runis set, the command performs status verification, import, lane creation, and snap as usual, then logs a summary and returns early — skipping the remote lane deletion, rename, and export steps. Thefinallycleanup block still runs normally.Follows the same pattern as
--skip-pushinbit ci merge.