-
-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (32 loc) · 995 Bytes
/
issue-planned.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
name: Mark issue as planned
on:
issues:
types: [ milestoned ]
jobs:
apply-label:
runs-on: ubuntu-20.04
steps:
- name: sleep 20s
run: sleep 20
- uses: actions/github-script@v7
name: Add label 'status planned' to issue when milestoned
with:
github-token: ${{github.token}}
script: |
github.rest.issues.addLabels({
...context.repo,
issue_number: context.issue.number,
labels: ['status: planned']
})
.catch(e => { console.log(e.message) })
- uses: actions/github-script@v7
name: Remove label 'status new' to issue when milestoned
with:
github-token: ${{github.token}}
script: |
github.rest.issues.removeLabel({
...context.repo,
issue_number: context.issue.number,
name: 'status: new'
})
.catch(e => { console.log(e.message) })