Skip to content

Commit 8118bcf

Browse files
committed
Autolabel PRs
1 parent c54c7f4 commit 8118bcf

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

.github/release-drafter.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,39 @@ categories:
2424
- "dependencies"
2525
exclude-labels:
2626
- "skip-changelog"
27+
autolabeler:
28+
- label: "documentation"
29+
files:
30+
- "**/*.md"
31+
- "docs/**"
32+
- "backstage.yaml"
33+
- label: "bug"
34+
branch:
35+
- '/fix\/.+/'
36+
- label: "enhancement"
37+
branch:
38+
- '/feat\/.+/'
39+
- label: "refactoring"
40+
branch:
41+
- '/refactor\/.+/'
42+
title:
43+
- "/^refactor/i"
44+
- label: "testing"
45+
branch:
46+
- '/test\/.+/'
47+
- label: "skip-changelog"
48+
branch:
49+
- '/release\/.+/'
50+
- '/chore\/.+/'
51+
- label: "breaking"
52+
title:
53+
- "/breaking change/i"
54+
- label: "ci"
55+
files:
56+
- ".github/*"
57+
- "noxfile.py"
58+
branch:
59+
- '/ci\/.+/'
2760
template: |
2861
## Changes
2962
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Label PR
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
label_pr:
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: release-drafter/release-drafter/autolabeler@693d20e7c1ce1a81d3a41962f85914253b518449 # v7.3.1
14+
name: Label PR

0 commit comments

Comments
 (0)