Skip to content

Commit 8ff7aca

Browse files
authored
Merge pull request #5832 from vector-im/feature/manu/elementx_gh_workflow
Add a GH workflow to push ElementX issues to the global board
2 parents f863bde + d2f6f0f commit 8ff7aca

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