We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d2ca88 commit b50a7e5Copy full SHA for b50a7e5
.github/workflows/label-merge-conflicts.yml
@@ -0,0 +1,21 @@
1
+name: "Maintenance"
2
+on:
3
+ # So that PRs touching the same files as the push are updated
4
+ push:
5
+ # So that the `dirtyLabel` is removed if conflicts are resolve
6
+ # We recommend `pull_request_target` so that github secrets are available.
7
+ # In `pull_request` we wouldn't be able to change labels of fork PRs
8
+ pull_request_target:
9
+ types: [synchronize]
10
+
11
+jobs:
12
+ main:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: check if prs are dirty
16
+ uses: eps1lon/actions-label-merge-conflict@releases/2.x
17
+ with:
18
+ dirtyLabel: "needs rebase"
19
+ repoToken: "${{ secrets.GITHUB_TOKEN }}"
20
+ commentOnDirty: "This pull request has conflicts, please rebase."
21
+ #commentOnClean: "Conflicts have been resolved. A maintainer will review the pull request shortly."
0 commit comments