From 60ca5df2e7cc1d47b39087d855d7eff4d3fc4927 Mon Sep 17 00:00:00 2001 From: Anish Asthana Date: Fri, 25 Aug 2023 18:03:16 -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.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/auto-add-issues.yaml diff --git a/.github/workflows/auto-add-issues.yaml b/.github/workflows/auto-add-issues.yaml new file mode 100644 index 000000000..a8be31eb4 --- /dev/null +++ b/.github/workflows/auto-add-issues.yaml @@ -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 }}