forked from line/line-bot-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 808 Bytes
/
label-issue.yml
File metadata and controls
32 lines (28 loc) · 808 Bytes
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
name: Label issue
on:
issues:
types:
- opened
- reopened
- closed
jobs:
label-issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Add label on issue open
if: github.event.action == 'opened' || github.event.action == 'reopened'
run: |
gh issue edit ${{ github.event.issue.number }} \
--add-label "untriaged" \
env:
GH_TOKEN: ${{ github.token }}
- name: Remove label on issue close
if: github.event.action == 'closed'
run: |
gh issue edit ${{ github.event.issue.number }} \
--remove-label "untriaged"
env:
GH_TOKEN: ${{ github.token }}