Skip to content

Commit 959cc32

Browse files
authored
chore: replace labeler workflows with Carson's auto-labeler and conflicts-notifier (#10547)
1 parent 6ab6c65 commit 959cc32

5 files changed

Lines changed: 34 additions & 121 deletions

File tree

‎.github/carson.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,32 @@
22

33
version: 1
44
subscribers:
5+
- auto-labeler
6+
- conflicts-notifier
57
- pr-title-linter
68
settings:
9+
auto-labeler:
10+
sync_labels: true
11+
rules:
12+
- label: '4.8' # @todo change value whenever the next minor version is changed
13+
base_branch: ['^4\.8$']
14+
- label: github_actions
15+
files: ['.github/workflows/*']
16+
- label: documentation
17+
files:
18+
all: ['user_guide_src/source/**']
19+
- label: testing
20+
files:
21+
all: ['tests/**']
22+
conflicts-notifier:
23+
label: stale
24+
message: |-
25+
:wave: Hi, @{{user}}!
26+
27+
We detected conflicts in your PR against the base branch :speak_no_evil:
28+
You may want to sync :arrows_counterclockwise: your branch with upstream!
29+
30+
Ref: [Syncing Your Branch](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#updating-your-branch)
731
pr-title-linter:
832
name: 'Carson / pr-title-linter'
933
rules:

‎.github/labeler.yml‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎.github/workflows/label-add-conflict-all-pr.yml‎

Lines changed: 0 additions & 51 deletions
This file was deleted.

‎.github/workflows/label-pr.yml‎

Lines changed: 0 additions & 47 deletions
This file was deleted.

‎.github/workflows/run-carson.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ on:
77
- edited
88
- synchronize
99
- reopened
10+
- labeled
11+
issues:
12+
types:
13+
- opened
14+
- edited
15+
- labeled
16+
push:
17+
branches:
18+
- develop
19+
- '4.*'
1020

1121
permissions: {}
1222

0 commit comments

Comments
 (0)