Skip to content

Commit

Permalink
Notify pull request authors about merge conflicts (#732)
Browse files Browse the repository at this point in the history
This patch adds a GitHub Actions workflow to automatically notify pull
request authors about merge conflicts by commenting at and labeling the
pull request.
  • Loading branch information
lkiesow committed Aug 3, 2023
1 parent 86a5df8 commit fd18501
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check-merge-conflict.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Merge conflict check
on:
push:
pull_request_target:
types:
- opened
- synchronize

jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Check for dirty pull requests
uses: eps1lon/actions-label-merge-conflict@releases/2.x
with:
dirtyLabel: "status:conflicts"
repoToken: "${{ secrets.GITHUB_TOKEN }}"
commentOnDirty: |
This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

0 comments on commit fd18501

Please sign in to comment.