Skip to content

Commit 0a5aded

Browse files
Add automation to move message bubbles issues to message bubbles board (#20117)
1 parent b155d19 commit 0a5aded

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,26 @@ jobs:
118118
env:
119119
PROJECT_ID: "PN_kwDOAM0swc0rRA"
120120
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
121+
122+
move_message_bubbles_issues:
123+
name: A-Message-Bubbles to Message bubbles board
124+
runs-on: ubuntu-latest
125+
if: >
126+
contains(github.event.issue.labels.*.name, 'A-Message-Bubbles')
127+
steps:
128+
- uses: octokit/[email protected]
129+
with:
130+
headers: '{"GraphQL-Features": "projects_next_graphql"}'
131+
query: |
132+
mutation add_to_project($projectid:String!,$contentid:String!) {
133+
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
134+
projectNextItem {
135+
id
136+
}
137+
}
138+
}
139+
projectid: ${{ env.PROJECT_ID }}
140+
contentid: ${{ github.event.issue.node_id }}
141+
env:
142+
PROJECT_ID: "PN_kwDOAM0swc3m-g"
143+
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}

0 commit comments

Comments
 (0)