File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Add new issues to Ignite 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+ permissions : {}
13+ steps :
14+ - uses : actions/add-to-project@v1.0.2
15+ with :
16+ project-url : ${{ secrets.GH_PROJECT_URL }}
17+ github-token : ${{ secrets.ADD_TO_PROJECT }}
18+ label_issues :
19+ needs : add-to-project
20+ runs-on : ubuntu-latest
21+ permissions :
22+ issues : write
23+ steps :
24+ - run : |
25+ if [ -n "$LABELS" ]; then
26+ gh issue edit "$NUMBER" --add-label "$LABELS"
27+ else
28+ echo "No label to add."
29+ fi
30+ env:
31+ GH_TOKEN: ${{ secrets.ADD_TO_PROJECT }}
32+ GH_REPO: ${{ github.repository }}
33+ NUMBER: ${{ github.event.issue.number }}
34+ LABELS: ${{ secrets.ISSUE_LABEL }}
You can’t perform that action at this time.
0 commit comments