From 2c8cc3e16d3bc38aed2f54a6a8c08ab26a3bc539 Mon Sep 17 00:00:00 2001 From: daniellekirkwood <89144281+daniellekirkwood@users.noreply.github.com> Date: Thu, 9 Dec 2021 15:20:10 +0000 Subject: [PATCH] Add automation to move messages bubbles issues to the message bubbles board (#4667) * Add automation to move message bubbles issues to bubbles board * Add changelog entry Changelog entry to note new automation to move message bubbles issues to message bubbles board --- .github/workflows/triage-move-labelled.yml | 23 ++++++++++++++++++++++ changelog.d/4666.misc | 1 + 2 files changed, 24 insertions(+) create mode 100644 changelog.d/4666.misc diff --git a/.github/workflows/triage-move-labelled.yml b/.github/workflows/triage-move-labelled.yml index 124233c5e38..ef3a0ab6881 100644 --- a/.github/workflows/triage-move-labelled.yml +++ b/.github/workflows/triage-move-labelled.yml @@ -117,3 +117,26 @@ jobs: env: PROJECT_ID: "PN_kwDOAM0swc0rRA" GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} + + move_message_bubbles_issues: + name: A-Message-Bubbles to Message bubbles board + runs-on: ubuntu-latest + if: > + contains(github.event.issue.labels.*.name, 'A-Message-Bubbles') + 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_kwDOAM0swc3m-g" + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} diff --git a/changelog.d/4666.misc b/changelog.d/4666.misc new file mode 100644 index 00000000000..9401963de56 --- /dev/null +++ b/changelog.d/4666.misc @@ -0,0 +1 @@ +Add automation to move message bubbles issues to message bubbles board.