Issue automation workflow updates (#19767)

* Add automation to move Threads issues

Fixes #19732

* Rename triage workflows to be more consistent
This commit is contained in:
Kat Gerasimova 2021-11-16 14:04:11 +00:00 committed by GitHub
parent 12a42499a7
commit b2e8f212e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 2 deletions

View File

@ -108,3 +108,26 @@ jobs:
env:
PROJECT_ID: "PN_kwDOAM0swc2KCw"
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
move_threads_issues:
name: Move A-Threads to Thread board
runs-on: ubuntu-latest
if: >
contains(github.event.issue.labels.*.name, 'A-Threads')
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_kwDOAM0swc0rRA"
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}

View File

@ -5,7 +5,7 @@ on:
types: [labeled, unlabeled]
jobs:
Move_high_priority_issues_to_team_workboard:
p1_issues_to_team_workboard:
runs-on: ubuntu-latest
if: >
(!contains(github.event.issue.labels.*.name, 'A-E2EE') &&
@ -31,7 +31,7 @@ jobs:
column: P1
repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
Move_high_priority_issues_to_crypto_team_workboard:
P1_issues_to_crypto_team_workboard:
runs-on: ubuntu-latest
if: >
(contains(github.event.issue.labels.*.name, 'A-E2EE') ||