From 28f00498a2b2f6f4dc529613a81ac9754c553a73 Mon Sep 17 00:00:00 2001 From: Kat Gerasimova Date: Tue, 9 Nov 2021 15:10:19 +0000 Subject: [PATCH] Actions: use new voice message board for issues (#19670) Voice-Messages are moving to org-level beta board so add automation to send issues there (will remove old board automation after the move). Signed-off-by: Ekaterina Gerasimova --- .github/workflows/triage-move-labelled.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/triage-move-labelled.yml b/.github/workflows/triage-move-labelled.yml index 48fd23890f4..9feb237d111 100644 --- a/.github/workflows/triage-move-labelled.yml +++ b/.github/workflows/triage-move-labelled.yml @@ -92,3 +92,20 @@ jobs: project-url: "https://github.com/vector-im/element-web/projects/28" column-name: "📥 Inbox" label-name: "A-Voice Messages" + - uses: octokit/graphql-action@v2.x + id: add_to_voice + 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_kwDOAM0swc2KCw" + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}