Skip to content

Commit b2e8f21

Browse files
authored
Issue automation workflow updates (#19767)
* Add automation to move Threads issues Fixes #19732 * Rename triage workflows to be more consistent
1 parent 12a4249 commit b2e8f21

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.github/workflows/triage-move-labelled.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,26 @@ jobs:
108108
env:
109109
PROJECT_ID: "PN_kwDOAM0swc2KCw"
110110
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
111+
112+
move_threads_issues:
113+
name: Move A-Threads to Thread board
114+
runs-on: ubuntu-latest
115+
if: >
116+
contains(github.event.issue.labels.*.name, 'A-Threads')
117+
steps:
118+
- uses: octokit/[email protected]
119+
with:
120+
headers: '{"GraphQL-Features": "projects_next_graphql"}'
121+
query: |
122+
mutation add_to_project($projectid:String!,$contentid:String!) {
123+
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
124+
projectNextItem {
125+
id
126+
}
127+
}
128+
}
129+
projectid: ${{ env.PROJECT_ID }}
130+
contentid: ${{ github.event.issue.node_id }}
131+
env:
132+
PROJECT_ID: "PN_kwDOAM0swc0rRA"
133+
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}

.github/workflows/triage-priority-bugs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [labeled, unlabeled]
66

77
jobs:
8-
Move_high_priority_issues_to_team_workboard:
8+
p1_issues_to_team_workboard:
99
runs-on: ubuntu-latest
1010
if: >
1111
(!contains(github.event.issue.labels.*.name, 'A-E2EE') &&
@@ -31,7 +31,7 @@ jobs:
3131
column: P1
3232
repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
3333

34-
Move_high_priority_issues_to_crypto_team_workboard:
34+
P1_issues_to_crypto_team_workboard:
3535
runs-on: ubuntu-latest
3636
if: >
3737
(contains(github.event.issue.labels.*.name, 'A-E2EE') ||

0 commit comments

Comments
 (0)