Skip to content

feat: add --dry-run flag #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 15, 2025
Merged

feat: add --dry-run flag #29

merged 5 commits into from
Apr 15, 2025

Conversation

GrantBirki
Copy link
Member

@GrantBirki GrantBirki commented Apr 15, 2025

resolves: #28

Gotchas

  • The logic determining if a branch can be successfully merged or not will not run in --dry-run mode (MC stats)

@Copilot Copilot AI review requested due to automatic review settings April 15, 2025 16:45
@GrantBirki GrantBirki changed the title add --dry-run flag feat: add --dry-run flag Apr 15, 2025
@GrantBirki GrantBirki added the enhancement New feature or request label Apr 15, 2025
Copy link
Contributor

@Copilot 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 new --dry-run flag to simulate combining pull requests without executing any destructive operations.

  • Introduces a new global dryRun flag in internal/cmd/root.go and registers it as a CLI flag.
  • Propagates the dryRun flag to the CombinePRsWithStats function in internal/cmd/combine_prs.go to conditionally simulate branch operations and PR merges.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
internal/cmd/root.go Added dryRun flag declaration and registration in the CLI.
internal/cmd/combine_prs.go Modified CombinePRsWithStats to accept a dryRun parameter and simulate branch operations and merge behavior when enabled.

Verified

This commit was signed with the committer’s verified signature.
GrantBirki Grant Birkinbine

Verified

This commit was signed with the committer’s verified signature.
GrantBirki Grant Birkinbine
@GrantBirki GrantBirki merged commit 6d7bbce into main Apr 15, 2025
7 checks passed
@GrantBirki GrantBirki deleted the dry-run branch April 15, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--dry-run input flag
2 participants