File tree Expand file tree Collapse file tree 1 file changed +21
-10
lines changed Expand file tree Collapse file tree 1 file changed +21
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Label PRs based on their titles.
2
2
#
3
- # See `.github/pr-title-labeler.yml` to see rules for each label/title pattern.
3
+ # Uses conventional commit types from PR titles to apply labels.
4
+ # Note: Scope-based labeling (e.g., integration labels) is handled by pr_labeler_file.yml
4
5
5
6
name : " 🏷️ PR Title Labeler"
6
7
7
8
on :
8
9
# Safe since we're not checking out or running the PR's code
9
10
# Never check out the PR's head in a pull_request_target job
10
11
pull_request_target :
11
- types : [opened, synchronize, reopened, edited]
12
+ types : [opened, edited]
12
13
13
14
jobs :
14
15
pr-title-labeler :
@@ -20,14 +21,24 @@ jobs:
20
21
runs-on : ubuntu-latest
21
22
22
23
steps :
23
- - name : Checkout repository
24
- uses : actions/checkout@v5
25
- with :
26
- ref : ${{ github.event.pull_request.base.ref }}
27
-
28
24
- name : Label PR based on title
29
- # Archived repo; latest commit (v0.1.0)
30
- uses : grafana/pr-labeler-action@f19222d3ef883d2ca5f04420fdfe8148003763f0
25
+ uses : bcoe/conventional-release-labels@v1
31
26
with :
32
27
token : ${{ secrets.GITHUB_TOKEN }}
33
- configuration-path : .github/pr-title-labeler.yml
28
+ type_labels : >-
29
+ {
30
+ "feat": "feature",
31
+ "fix": "fix",
32
+ "docs": "documentation",
33
+ "style": "linting",
34
+ "refactor": "refactor",
35
+ "perf": "performance",
36
+ "test": "tests",
37
+ "build": "infra",
38
+ "ci": "infra",
39
+ "chore": "infra",
40
+ "revert": "revert",
41
+ "release": "release",
42
+ "breaking": "breaking"
43
+ }
44
+ ignored_types : ' []'
You can’t perform that action at this time.
0 commit comments