From 69712280b887382165661ed33b5760995869f0ed Mon Sep 17 00:00:00 2001 From: Anish Asthana Date: Fri, 25 Aug 2023 18:07:05 -0400 Subject: [PATCH] Automatically label issues as needing triage and add them to project board Signed-off-by: Anish Asthana --- .github/workflows/auto-add-issues.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/auto-add-issues.yml diff --git a/.github/workflows/auto-add-issues.yml b/.github/workflows/auto-add-issues.yml new file mode 100644 index 00000000..a8be31eb --- /dev/null +++ b/.github/workflows/auto-add-issues.yml @@ -0,0 +1,25 @@ +name: Label new issues as needs-triage and add to CodeFlare Sprint Board +on: + issues: + types: + - opened +jobs: + add_label: + name: Add needs-triage label to new issues + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/checkout@v3 + - run: gh issue edit ${{ github.event.issue.number }} --add-label "triage/needs-triage" + env: + GH_TOKEN: ${{ github.token }} + + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/project-codeflare/projects/8 + github-token: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}