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

Skip to content

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Oct 16, 2020

Followup to #1622, which I've accidentally merged prematurely. I wanted to add these adjustments in:

  • No added -y, --confirm flag. We only want confirmation in interactive mode, and users could already choose a non-interactive mode by supplying --merge|--rebase|--squash (and optionally --delete-branch). The added --confirm flag would have broken compatibility with existing scripts by forcing them into interactive mode until they pass in -y.

  • Confirmation step is now part of prInteractiveMerge()

  • Restore unnecessary indent under if shouldSubmitFromFlag by returning early on cancellation instead

/cc @ShubhankarKG

Copy link
Contributor

@ShubhankarKG ShubhankarKG left a comment

Choose a reason for hiding this comment

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

Nice! I did not think of this in my PR, but now that I see it, it does break the flow for scriptability purposes. Thanks for bringing this up @mislav ! Does make sense to include a confirmation step only in the interactive merge.

@mislav mislav merged commit e74e431 into trunk Oct 27, 2020
@mislav mislav deleted the merge-confirmation-fixup branch October 27, 2020 12:25
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.

3 participants