Skip to content

Commit f314d0a

Browse files
authored
Merge pull request #7921 from ddevsr/patch-2
GH: auto label conflict PR
2 parents 37ff3a4 + 664aceb commit f314d0a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/label-conflict.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Auto Label Conflicts
2+
on:
3+
pull_request:
4+
branches:
5+
- 'develop'
6+
- '4.*'
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
issues: write
15+
pull-requests: write
16+
17+
jobs:
18+
auto-label:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: prince-chrismc/label-merge-conflicts-action@v3
22+
with:
23+
conflict_label_name: 'stale'
24+
github_token: ${{ github.token }}
25+
26+
# --- Optional Inputs ---
27+
# To make sure the merge commit exactly matches the branch
28+
detect_merge_changes: true # or true to handle as conflicts
29+
# By default a comment will be left, adding `conflict_comment: ''` will disable comments
30+
# The optional `${author}` will be replaced with the username of the pull request
31+
conflict_comment: |
32+
:wave: Hi, @${author},
33+
34+
We detected conflicts in your PR against the base branch :speak_no_evil:
35+
You may want to sync :arrows_counterclockwise: your branch with upstream!
36+
37+
Ref: https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#pushing-your-branch

0 commit comments

Comments
 (0)