GitHub + Do not merge PRs with unresolved conversations

Viewed 1711

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?

2 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.

No, it's not possible to do that. Conversations and review comments aren't considered when performing merge checks.

If you want to prevent the PR from being merged, then you need to refrain from approving it or request changes if need be. The reason is that conversations can be resolved entirely by one party, so they aren't very effective at ensuring the user has done anything about them. The author could resolve it and merge without making any changes at all, and therefore it doesn't make sense to make this any sort of control.

Related