Label when git conflicts
It can be tiresome to open a pull request and realize that it has Git conflicts.
Here's an example of a reviewpad.yml
configuration file that labels pull requests that have Git conflicts.
api-version: reviewpad.com/v3.x
workflows:
- name: handle-conflicts
if:
- $hasGitConflicts()
then:
- $addLabel("conflicts")
- $comment("This pull request has merge conflicts. Please resolve them and then rebase on the base branch.")