Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 2e2040c

Browse files
authored
Add GitHub automation for new issues (#13610)
Set up automation to move newly opened issues in GitHub to the issue triage board.
1 parent b687010 commit 2e2040c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/triage-incoming.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Move new issues into the issue triage board
2+
3+
on:
4+
issues:
5+
types: [ opened ]
6+
7+
jobs:
8+
add_new_issues:
9+
name: Add new issues to the triage board
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: octokit/[email protected]
13+
id: add_to_project
14+
with:
15+
headers: '{"GraphQL-Features": "projects_next_graphql"}'
16+
query: |
17+
mutation add_to_project($projectid:ID!,$contentid:ID!) {
18+
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
19+
projectNextItem {
20+
id
21+
}
22+
}
23+
}
24+
projectid: ${{ env.PROJECT_ID }}
25+
contentid: ${{ github.event.issue.node_id }}
26+
env:
27+
PROJECT_ID: "PVT_kwDOAIB0Bs4AFDdZ"
28+
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}

0 commit comments

Comments
 (0)