Skip to content

Commit d2f6f0f

Browse files
committed
Add a GH workflow to push ElementX issues to the global board
https://github.com/orgs/vector-im/projects/43
1 parent 2839d14 commit d2f6f0f

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/triage-labelled.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,3 +252,30 @@ jobs:
252252
env:
253253
PROJECT_ID: "PN_kwDOAM0swc4AArk0"
254254
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
255+
256+
move_element_x_issues:
257+
name: ElementX issues to ElementX project board
258+
runs-on: ubuntu-latest
259+
# Skip in forks
260+
if: >
261+
github.repository == 'vector-im/element-android' &&
262+
(contains(github.event.issue.labels.*.name, 'Z-ElementX-Alpha') ||
263+
contains(github.event.issue.labels.*.name, 'Z-ElementX-Beta') ||
264+
contains(github.event.issue.labels.*.name, 'Z-ElementX'))
265+
steps:
266+
- uses: octokit/[email protected]
267+
with:
268+
headers: '{"GraphQL-Features": "projects_next_graphql"}'
269+
query: |
270+
mutation add_to_project($projectid:ID!,$contentid:ID!) {
271+
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
272+
projectNextItem {
273+
id
274+
}
275+
}
276+
}
277+
projectid: ${{ env.PROJECT_ID }}
278+
contentid: ${{ github.event.issue.node_id }}
279+
env:
280+
PROJECT_ID: "PN_kwDOAM0swc4ABTXY"
281+
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}

changelog.d/5832.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add a GH workflow to push ElementX issues to the global board.

0 commit comments

Comments
 (0)