diff options
author | Andy Balaam <andy.balaam@matrix.org> | 2022-08-24 13:59:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 13:59:33 +0100 |
commit | 371db86a86f8876939449d5553726e69e623c898 (patch) | |
tree | e577bbda43e5d6c26c5fb4943cb330db49e0fe85 /.github/workflows | |
parent | Add experimental configuration option to allow disabling legacy Prometheus me... (diff) | |
download | synapse-371db86a86f8876939449d5553726e69e623c898.tar.xz |
First draft of triage_labelled action (#13612)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/triage_labelled.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/triage_labelled.yml b/.github/workflows/triage_labelled.yml new file mode 100644 index 0000000000..fbd55de17f --- /dev/null +++ b/.github/workflows/triage_labelled.yml @@ -0,0 +1,44 @@ +name: Move labelled issues to correct projects + +on: + issues: + types: [ labeled ] + +jobs: + move_needs_info: + name: Move X-Needs-Info on the triage board + runs-on: ubuntu-latest + if: > + contains(github.event.issue.labels.*.name, 'X-Needs-Info') + steps: + - uses: octokit/graphql-action@v2.x + id: add_to_project + with: + headers: '{"GraphQL-Features": "projects_next_graphql"}' + query: | + mutation { + updateProjectV2ItemFieldValue( + input: { + projectId: $projectid + itemId: $contentid + fieldId: $fieldid + value: { + singleSelectOptionId: "Todo" + } + } + ) { + projectV2Item { + id + } + } + } + + projectid: ${{ env.PROJECT_ID }} + contentid: ${{ github.event.issue.node_id }} + fieldid: ${{ env.FIELD_ID }} + optionid: ${{ env.OPTION_ID }} + env: + PROJECT_ID: "PVT_kwDOAIB0Bs4AFDdZ" + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} + FIELD_ID: "PVTSSF_lADOAIB0Bs4AFDdZzgC6ZA4" + OPTION_ID: "ba22e43c" |