Skip to content
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

PR Merge confirmations #1622

Merged
merged 2 commits into from
Oct 16, 2020
Merged

PR Merge confirmations #1622

merged 2 commits into from
Oct 16, 2020

Conversation

ShubhankarKG
Copy link
Contributor

Ref #1330
Ref #1360

Introducing added confirm step for pr merge.
This step can then be skipped through the -y flag.

Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

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

Thank you for the feature!

I realize that gh pr merge is mentioned in one of the referenced issues, but I'm not sure if pr merge really needs an additional confirmation step. Right now, pr merge already has a confirmation step:

$ gh pr merge
? What merge method would you like to use?

And instead of passing -y flag, the user can pass one of --merge, --squash, or --rebase as "confirmation". The way I see it, this style of interaction protects from accidental merges but also allows scripting/no-prompt use.

@ampinsk Would you agree?

@vilmibm vilmibm removed the community label Sep 29, 2020
@ampinsk
Copy link
Contributor

ampinsk commented Sep 29, 2020

Sorry for the delayed response here! Since this is a "riskier" command that's very high friction to undo, I'd like to include the confirmation and flag.

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.

5 participants