Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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