From b2e8f212e4101c0543a5bac7e88586e2cc0628b2 Mon Sep 17 00:00:00 2001 From: Kat Gerasimova Date: Tue, 16 Nov 2021 14:04:11 +0000 Subject: [PATCH] Issue automation workflow updates (#19767) * Add automation to move Threads issues Fixes #19732 * Rename triage workflows to be more consistent --- .github/workflows/triage-move-labelled.yml | 23 ++++++++++++++++++++++ .github/workflows/triage-priority-bugs.yml | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/triage-move-labelled.yml b/.github/workflows/triage-move-labelled.yml index 5cf5b78a5ae..b6147c15010 100644 --- a/.github/workflows/triage-move-labelled.yml +++ b/.github/workflows/triage-move-labelled.yml @@ -108,3 +108,26 @@ jobs: env: PROJECT_ID: "PN_kwDOAM0swc2KCw" GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} + + move_threads_issues: + name: Move A-Threads to Thread board + runs-on: ubuntu-latest + if: > + contains(github.event.issue.labels.*.name, 'A-Threads') + steps: + - uses: octokit/graphql-action@v2.x + with: + headers: '{"GraphQL-Features": "projects_next_graphql"}' + query: | + mutation add_to_project($projectid:String!,$contentid:String!) { + addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) { + projectNextItem { + id + } + } + } + projectid: ${{ env.PROJECT_ID }} + contentid: ${{ github.event.issue.node_id }} + env: + PROJECT_ID: "PN_kwDOAM0swc0rRA" + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} diff --git a/.github/workflows/triage-priority-bugs.yml b/.github/workflows/triage-priority-bugs.yml index 8cd34c01383..d67afcdfbaa 100644 --- a/.github/workflows/triage-priority-bugs.yml +++ b/.github/workflows/triage-priority-bugs.yml @@ -5,7 +5,7 @@ on: types: [labeled, unlabeled] jobs: - Move_high_priority_issues_to_team_workboard: + p1_issues_to_team_workboard: runs-on: ubuntu-latest if: > (!contains(github.event.issue.labels.*.name, 'A-E2EE') && @@ -31,7 +31,7 @@ jobs: column: P1 repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }} - Move_high_priority_issues_to_crypto_team_workboard: + P1_issues_to_crypto_team_workboard: runs-on: ubuntu-latest if: > (contains(github.event.issue.labels.*.name, 'A-E2EE') ||