Skip to content

Commit c34e57c

Browse files
committed
ci(issues): added the issues auto-labeling pipeline
Signed-off-by: k4yt3x <i@k4yt3x.com>
1 parent e8b0b0e commit c34e57c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/issues.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Issues
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- reopened
8+
- closed
9+
10+
jobs:
11+
label_issues:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Add 'state:Backlog' label on issue opened or reopened
15+
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' }}
16+
uses: actions-ecosystem/action-add-labels@v1
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
labels: state:Backlog
20+
21+
- name: Add 'state:Done' label on issue closed
22+
if: ${{ github.event.action == 'closed' }}
23+
uses: actions-ecosystem/action-add-labels@v1
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
labels: state:Done

0 commit comments

Comments
 (0)