From 8c227f61ddc4a31407321b13d57906ad7076d79c Mon Sep 17 00:00:00 2001 From: Kat Gerasimova Date: Fri, 5 Nov 2021 21:12:49 +0000 Subject: [PATCH] Update design team workflow to use beta board (#19647) Try sending design issues to the beta board Signed-off-by: Ekaterina Gerasimova --- .github/workflows/triage-move-labelled.yml | 26 ++++++++++++++++------ 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/triage-move-labelled.yml b/.github/workflows/triage-move-labelled.yml index 04e08f12b..3ac877755 100644 --- a/.github/workflows/triage-move-labelled.yml +++ b/.github/workflows/triage-move-labelled.yml @@ -16,23 +16,35 @@ jobs: column-name: "Need info" label-name: "X-Needs-Info" - move_priority_design_issues: + add_priority_design_issues_to_project: name: Move priority X-Needs-Design issues to Design project board runs-on: ubuntu-latest if: > + ${{ contains(github.event.issue.labels.*.name, 'X-Needs-Design') && (contains(github.event.issue.labels.*.name, 'O-Frequent') || contains(github.event.issue.labels.*.name, 'O-Occasional')) && (contains(github.event.issue.labels.*.name, 'S-Critical') || contains(github.event.issue.labels.*.name, 'S-Major') || - contains(github.event.issue.labels.*.name, 'S-Minor')) + contains(github.event.issue.labels.*.name, 'S-Minor')) }} steps: - - uses: konradpabjan/move-labeled-or-milestoned-issue@219d384e03fa4b6460cd24f9f37d19eb033a4338 + - uses: octokit/graphql-action@v2.x + id: add_to_project with: - action-token: "${{ secrets.ELEMENT_BOT_TOKEN }}" - project-url: "https://github.com/orgs/vector-im/projects/14" - column-name: "📥 Inbox" - label-name: "X-Needs-Design" + 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_kwDOAM0swc0sUA" + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} move_spaces_issues: name: Move Spaces issues to Delight project board