From 4aa3b0b6370ae7ba4a7bda1340814b9595e60dd0 Mon Sep 17 00:00:00 2001 From: Kat Gerasimova Date: Fri, 13 Jan 2023 11:37:04 +0000 Subject: [PATCH] Update automation for new app team board (#24219) Old board has been archived, updating automation to move issues to the new board. --- .github/workflows/triage-assigned.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/triage-assigned.yml b/.github/workflows/triage-assigned.yml index cc28b73103..d0d25a29a9 100644 --- a/.github/workflows/triage-assigned.yml +++ b/.github/workflows/triage-assigned.yml @@ -9,11 +9,22 @@ jobs: runs-on: ubuntu-latest if: | contains(github.event.issue.assignees.*.login, 't3chguy') || - contains(github.event.issue.assignees.*.login, 'andybalaam') || - contains(github.event.issue.assignees.*.login, 'turt2live') + contains(github.event.issue.assignees.*.login, 'andybalaam') steps: - - uses: alex-page/github-project-automation-plus@1f8873e97e3c8f58161a323b7c568c1f623a1c4d + - uses: octokit/graphql-action@v2.x + id: add_to_project with: - project: Web App Team - column: "In Progress" - repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }} + headers: '{"GraphQL-Features": "projects_next_graphql"}' + query: | + mutation add_to_project($projectid:ID!,$contentid:ID!) { + addProjectV2ItemById(input: {projectId: $projectid contentId: $contentid}) { + item { + id + } + } + } + projectid: ${{ env.PROJECT_ID }} + contentid: ${{ github.event.issue.node_id }} + env: + PROJECT_ID: "PVT_kwDOAM0swc4AKjJS" + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}