Update automation for new app team board (#24219)

Old board has been archived, updating automation to move issues to the new board.
pull/24224/head
Kat Gerasimova 2023-01-13 11:37:04 +00:00 committed by GitHub
parent c53ba7c07f
commit 4aa3b0b637
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 6 deletions

View File

@ -9,11 +9,22 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: | if: |
contains(github.event.issue.assignees.*.login, 't3chguy') || contains(github.event.issue.assignees.*.login, 't3chguy') ||
contains(github.event.issue.assignees.*.login, 'andybalaam') || contains(github.event.issue.assignees.*.login, 'andybalaam')
contains(github.event.issue.assignees.*.login, 'turt2live')
steps: steps:
- uses: alex-page/github-project-automation-plus@1f8873e97e3c8f58161a323b7c568c1f623a1c4d - uses: octokit/graphql-action@v2.x
id: add_to_project
with: with:
project: Web App Team headers: '{"GraphQL-Features": "projects_next_graphql"}'
column: "In Progress" query: |
repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }} 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 }}