Skip to content

Commit 929f71f

Browse files
authored
Create add-to-project.yml
1 parent 3b2dae5 commit 929f71f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Add new issues to AI Tour GH Project
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
add-to-project:
10+
name: Add issue to project
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/[email protected]
14+
with:
15+
project-url: ${{ secrets.GH_PROJECT_URL }}
16+
github-token: ${{ secrets.ADD_TO_PROJECT }}
17+
label_issues:
18+
needs: add-to-project
19+
runs-on: ubuntu-latest
20+
permissions:
21+
issues: write
22+
steps:
23+
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
24+
env:
25+
GH_TOKEN: ${{ secrets.ADD_TO_PROJECT }}
26+
GH_REPO: ${{ github.repository }}
27+
NUMBER: ${{ github.event.issue.number }}
28+
LABELS: Migrate

0 commit comments

Comments
 (0)