forked from lava-nc/lava-optimization
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 815 Bytes
/
issues.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
name: Add new issues to the NCL planning project and label them
on:
issues:
types:
- opened
- reopened
- transferred
jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/lava-nc/projects/3
github-token: ${{ secrets.ADD_ISSUES_TO_PROJECT }}
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v6
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["0-needs-review"]
})