Skip to content

Commit 9870af8

Browse files
authored
Create manage-issues.yml
1 parent 919d579 commit 9870af8

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Manage issues
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- reopened
8+
9+
jobs:
10+
label_issues:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
issues: write
14+
steps:
15+
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
16+
env:
17+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
GH_REPO: ${{ github.repository }}
19+
NUMBER: ${{ github.event.issue.number }}
20+
LABELS: "Status: Needs Triage"
21+
22+
add-to-project:
23+
name: Add issue to project
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/[email protected]
27+
with:
28+
# You can target a project in a different organization
29+
# to the issue
30+
project-url: https://github.com/orgs/nfdi4plants/projects/10
31+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}

0 commit comments

Comments
 (0)