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

Commit 371db86

Browse files
authored
First draft of triage_labelled action (#13612)
1 parent be4250c commit 371db86

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/triage_labelled.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Move labelled issues to correct projects
2+
3+
on:
4+
issues:
5+
types: [ labeled ]
6+
7+
jobs:
8+
move_needs_info:
9+
name: Move X-Needs-Info on the triage board
10+
runs-on: ubuntu-latest
11+
if: >
12+
contains(github.event.issue.labels.*.name, 'X-Needs-Info')
13+
steps:
14+
- uses: octokit/[email protected]
15+
id: add_to_project
16+
with:
17+
headers: '{"GraphQL-Features": "projects_next_graphql"}'
18+
query: |
19+
mutation {
20+
updateProjectV2ItemFieldValue(
21+
input: {
22+
projectId: $projectid
23+
itemId: $contentid
24+
fieldId: $fieldid
25+
value: {
26+
singleSelectOptionId: "Todo"
27+
}
28+
}
29+
) {
30+
projectV2Item {
31+
id
32+
}
33+
}
34+
}
35+
36+
projectid: ${{ env.PROJECT_ID }}
37+
contentid: ${{ github.event.issue.node_id }}
38+
fieldid: ${{ env.FIELD_ID }}
39+
optionid: ${{ env.OPTION_ID }}
40+
env:
41+
PROJECT_ID: "PVT_kwDOAIB0Bs4AFDdZ"
42+
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
43+
FIELD_ID: "PVTSSF_lADOAIB0Bs4AFDdZzgC6ZA4"
44+
OPTION_ID: "ba22e43c"

0 commit comments

Comments
 (0)