File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ # GitHub Action reference: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
2
+
3
+ name : pr-check-conflicts
4
+
5
+ on :
6
+ # For adding the merge-conflict label.
7
+ push :
8
+ branches :
9
+ - main
10
+ - master
11
+ # For removing the merge-conflict label.
12
+ pull_request_target :
13
+ types : [synchronize]
14
+
15
+ permissions :
16
+ pull-requests : write
17
+
18
+ jobs :
19
+ label :
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ # Docs: https://github.com/marketplace/actions/label-conflicting-pull-requests
23
+
24
+ with :
25
+ dirtyLabel : merge-conflict
26
+ repoToken : ${{ secrets.GITHUB_TOKEN }}
27
+ commentOnDirty : ' This pull request has merge conflicts. Please rebase your branch onto `${{ github.event.repository.default_branch }}`.'
28
+ commentOnClean : ' Conflicts are resolved. Thank you! :grinning:'
You can’t perform that action at this time.
0 commit comments