Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub + Do not merge PRs with unresolved conversations

I want to add a rule so the PR with open conversations can not be merged. It occurs that I can find a typo in PR and add a comment and still approve the PR, so that an author has the opportunity to quickly correct this typo and merge the PR. But I want it to be impossible to merge the PR until an author resolves the conversation. Is it possible to do this?

like image 453
Sheinar Avatar asked Jun 04 '20 12:06

Sheinar


People also ask

Can I close pull request without merging?

You may choose to close a pull request without merging it into the upstream branch. This can be handy if the changes proposed in the branch are no longer needed, or if another solution has been proposed in another branch.

How do I stop auto merge in GitHub?

Disabling auto-mergeOn GitHub.com, navigate to the main page of the repository. Under your repository name, click Pull requests. In the "Pull Requests" list, click the pull request you'd like to disable auto-merge for. In the merge box, click Disable auto-merge.

Should the author or reviewer resolve conversation?

If it's a question, then the reviewer probably wants to see the author's response. This suggests that the author should not be the one to resolve the conversation: once the conversation is marked resolved, it is likely to be hidden at least one and possibly more clicks away from the reviewer's sight.

How do I resolve a merge conflict on GitHub?

You can only resolve merge conflicts on GitHub that are caused by competing line changes, such as when people make different changes to the same line of the same file on different branches in your Git repository. For all other types of merge conflicts, you must resolve the conflict locally on the command line.

How do I resolve merge conflicts in a pull request?

If you have more than one file with a conflict, select the next file you want to edit on the left side of the page under "conflicting files" and repeat steps four through seven until you've resolved all of your pull request's merge conflicts. Once you've resolved all your merge conflicts, click Commit merge.

How do I resolve a conversation in a pull request?

You can resolve a conversation in a pull request if you opened the pull request or if you have write access to the repository where the pull request was opened. To indicate that a conversation on the Files changed tab is complete, click Resolve conversation.

Why can't I merge my conflict resolution into the head branch?

If the head branch is protected you won't be able to merge your conflict resolution into it, so you'll be prompted to create a new head branch. For more information, see " About protected branches ."


1 Answers

It looks like they've added a branch rule option for this but it indicates that the functionality is still in Beta.

Simply go to Settings -> Branches and check the Require conversation resolution before merging field.

Require conversation resolution before merging field.

like image 181
dnn Avatar answered Sep 27 '22 22:09

dnn