-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (34 loc) · 1.11 KB
/
require-labels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Require release-plan label
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
jobs:
label:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: mheap/github-action-required-labels@v5
with:
mode: minimum
count: 1
labels: |
breaking
enhancement
bug
documentation
internal
add_comment: true
message: |
One of the following labels is required: `breaking`, `enhancement`, `bug`, `documentation`, `internal`.
Our PR naming convention can help determine the correct label.
Use the following as a loose guide:
`feat:` -> `enhancement`
`refactor:` -> `enhancement` or `internal`
`fix:` -> `bug` or `internal`
`docs:` -> `documentation`
`test:` -> `internal`
`style:` -> `internal`
`chore:` -> `internal`
> [!IMPORTANT]
> Any change that breaks backwards compatibility should also be labeled as `breaking`.