Skip to content

Commit 078137f

Browse files
authored
chore(infra): use different pr title labeler (#33318)
The previous (from Grafana) is archived and doesn't work for community PRs.
1 parent d0f5a1c commit 078137f

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed
Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Label PRs based on their titles.
22
#
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
45

56
name: "🏷️ PR Title Labeler"
67

78
on:
89
# Safe since we're not checking out or running the PR's code
910
# Never check out the PR's head in a pull_request_target job
1011
pull_request_target:
11-
types: [opened, synchronize, reopened, edited]
12+
types: [opened, edited]
1213

1314
jobs:
1415
pr-title-labeler:
@@ -20,14 +21,24 @@ jobs:
2021
runs-on: ubuntu-latest
2122

2223
steps:
23-
- name: Checkout repository
24-
uses: actions/checkout@v5
25-
with:
26-
ref: ${{ github.event.pull_request.base.ref }}
27-
2824
- 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
3126
with:
3227
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: '[]'

0 commit comments

Comments
 (0)