From d2f6f0fa92e4a3699033fc4660270ef9cf72e005 Mon Sep 17 00:00:00 2001 From: manuroe Date: Mon, 25 Apr 2022 11:00:13 +0200 Subject: [PATCH] Add a GH workflow to push ElementX issues to the global board https://github.com/orgs/vector-im/projects/43 --- .github/workflows/triage-labelled.yml | 27 +++++++++++++++++++++++++++ changelog.d/5832.misc | 1 + 2 files changed, 28 insertions(+) create mode 100644 changelog.d/5832.misc diff --git a/.github/workflows/triage-labelled.yml b/.github/workflows/triage-labelled.yml index eeddf2e785..a2227bf1c5 100644 --- a/.github/workflows/triage-labelled.yml +++ b/.github/workflows/triage-labelled.yml @@ -252,3 +252,30 @@ jobs: env: PROJECT_ID: "PN_kwDOAM0swc4AArk0" GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} + + move_element_x_issues: + name: ElementX issues to ElementX project board + runs-on: ubuntu-latest + # Skip in forks + if: > + github.repository == 'vector-im/element-android' && + (contains(github.event.issue.labels.*.name, 'Z-ElementX-Alpha') || + contains(github.event.issue.labels.*.name, 'Z-ElementX-Beta') || + contains(github.event.issue.labels.*.name, 'Z-ElementX')) + steps: + - uses: octokit/graphql-action@v2.x + with: + headers: '{"GraphQL-Features": "projects_next_graphql"}' + query: | + mutation add_to_project($projectid:ID!,$contentid:ID!) { + addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) { + projectNextItem { + id + } + } + } + projectid: ${{ env.PROJECT_ID }} + contentid: ${{ github.event.issue.node_id }} + env: + PROJECT_ID: "PN_kwDOAM0swc4ABTXY" + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} diff --git a/changelog.d/5832.misc b/changelog.d/5832.misc new file mode 100644 index 0000000000..ace9dff5d4 --- /dev/null +++ b/changelog.d/5832.misc @@ -0,0 +1 @@ +Add a GH workflow to push ElementX issues to the global board. \ No newline at end of file