From 9a303ec923ea6f2e31a34e379f4b59ec35310cab Mon Sep 17 00:00:00 2001 From: daniellekirkwood <89144281+daniellekirkwood@users.noreply.github.com> Date: Tue, 1 Feb 2022 17:54:58 +0000 Subject: [PATCH 1/4] Update workflow for FTUE issues on FTUE board --- .github/workflows/triage-labelled.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/triage-labelled.yml b/.github/workflows/triage-labelled.yml index 71b1cde40d1..de70b0031ea 100644 --- a/.github/workflows/triage-labelled.yml +++ b/.github/workflows/triage-labelled.yml @@ -202,3 +202,28 @@ jobs: env: PROJECT_ID: "PN_kwDOAM0swc3m-g" GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} + + move_ftue_issues: + name: Z-FTUE to Mobile FTUE board + runs-on: ubuntu-latest + # Skip in forks + if: > + github.repository == 'vector-im/element-android' && + contains(github.event.issue.labels.*.name, 'Z-FTUE') + 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_kwDOAM0swc4AAqVx" + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} From a6636b818866148543376a5df91637796b335e6c Mon Sep 17 00:00:00 2001 From: daniellekirkwood <89144281+daniellekirkwood@users.noreply.github.com> Date: Tue, 1 Feb 2022 17:57:53 +0000 Subject: [PATCH 2/4] Add changelog entry --- changelog.d/5120.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/5120.misc diff --git a/changelog.d/5120.misc b/changelog.d/5120.misc new file mode 100644 index 00000000000..f1667f8b5d6 --- /dev/null +++ b/changelog.d/5120.misc @@ -0,0 +1 @@ +Added automation for the Z-FTUE label to add issues to the FTUE Project Board From 4b7dcf634f58336a13781464ee676280866f1332 Mon Sep 17 00:00:00 2001 From: daniellekirkwood <89144281+daniellekirkwood@users.noreply.github.com> Date: Thu, 3 Feb 2022 16:39:11 +0000 Subject: [PATCH 3/4] Add automation for WTF labels to WTF board --- .github/workflows/triage-labelled.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/triage-labelled.yml b/.github/workflows/triage-labelled.yml index de70b0031ea..1f61f3c4182 100644 --- a/.github/workflows/triage-labelled.yml +++ b/.github/workflows/triage-labelled.yml @@ -227,3 +227,28 @@ jobs: env: PROJECT_ID: "PN_kwDOAM0swc4AAqVx" GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} + + move_WTF_issues: + name: Z-WTF to WTF board + runs-on: ubuntu-latest + # Skip in forks + if: > + github.repository == 'vector-im/element-android' && + contains(github.event.issue.labels.*.name, 'Z-FTUE') + 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_kwDOAM0swc4AArk0" + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} From a44f49fa343ca4b1e3deb5056851ad0ebc760471 Mon Sep 17 00:00:00 2001 From: daniellekirkwood <89144281+daniellekirkwood@users.noreply.github.com> Date: Thu, 3 Feb 2022 16:39:47 +0000 Subject: [PATCH 4/4] Create 5148.misc --- changelog.d/5148.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/5148.misc diff --git a/changelog.d/5148.misc b/changelog.d/5148.misc new file mode 100644 index 00000000000..8cd47e97127 --- /dev/null +++ b/changelog.d/5148.misc @@ -0,0 +1 @@ +Added automation for WTF labels to move to WTF project board