Skip to content

Commit ab0a8d2

Browse files
committed
Create issue labels automatically
1 parent 0effe0a commit ab0a8d2

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.github/labels.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Default
2+
## Required for template
3+
- name: bug
4+
description: "Something isn't working"
5+
color: 'd73a4a'
6+
- name: enhancement
7+
description: New feature or request
8+
color: '#a2eeef'
9+
- name: question
10+
description: Information is requested
11+
color: '#d876e3'
12+
## Others
13+
- name: duplicate
14+
description: This already exists
15+
color: '#cfd3d7'
16+
- name: good first issue
17+
description: Good for newcomers
18+
color: '#7057ff'
19+
- name: help wanted
20+
description: Extra attention is needed
21+
color: '#008672'
22+
- name: invalid
23+
description: "This doesn't seem right"
24+
color: '#e4e669'
25+
# Custom
26+
- name: "can't reproduce"
27+
color: '#e95f2c'
28+
- name: customer-requested
29+
description: was requested by a customer of us
30+
color: '#068374'
31+
- name: stale
32+
color: '#ededed'
33+
- name: waiting-for-response
34+
description: If no response is received after a certain time the issue will be closed
35+
color: '#202020'

.github/workflows/sync-labels.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Sync labels
2+
3+
on:
4+
push:
5+
branches: develop
6+
paths:
7+
- .github/labels.yml
8+
9+
workflow_dispatch:
10+
11+
permissions:
12+
issues: write
13+
14+
jobs:
15+
labels:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
sparse-checkout: .github/labels.yml
21+
22+
- uses: EndBug/label-sync@v2
23+
with:
24+
config-file: .github/labels.yml

0 commit comments

Comments
 (0)