From 652c05051ad27e561fbc32a501be73edb7aa9b95 Mon Sep 17 00:00:00 2001 From: David Langley Date: Fri, 4 Oct 2024 09:06:23 +0100 Subject: [PATCH] Add issues labelled `P-Web` to the triage board (#329) --- .github/workflows/triage-labelled.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/triage-labelled.yml diff --git a/.github/workflows/triage-labelled.yml b/.github/workflows/triage-labelled.yml new file mode 100644 index 0000000..3e0f58b --- /dev/null +++ b/.github/workflows/triage-labelled.yml @@ -0,0 +1,21 @@ +name: Move labelled issues to the correct projects + +on: + issues: + types: [labeled] + workflow_call: + secrets: + ELEMENT_BOT_TOKEN: + required: true + +jobs: + web: + name: Add issues labelled for the web platform to the web triage project + runs-on: ubuntu-latest + if: > + contains(github.event.issue.labels.*.name, 'P-Web') + steps: + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/element-hq/projects/120 + github-token: ${{ secrets.ELEMENT_BOT_TOKEN }} \ No newline at end of file