From 8a0c383f2c386d4e29e839779fe92b50ff18a229 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 29 Dec 2024 19:03:46 -0600 Subject: [PATCH] chore: Add issues triage workflow --- .github/workflows/add-issues-to-triage.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/add-issues-to-triage.yaml diff --git a/.github/workflows/add-issues-to-triage.yaml b/.github/workflows/add-issues-to-triage.yaml new file mode 100644 index 0000000..c1dc059 --- /dev/null +++ b/.github/workflows/add-issues-to-triage.yaml @@ -0,0 +1,20 @@ +on: + issues: + types: [opened, reopened] + +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - name: Generate token + id: generate-token + uses: actions/create-github-app-token@v1.11.0 + with: + app-id: ${{ vars.NOCTURNE_BOT_APP_ID }} + private-key: ${{ secrets.NOCTURNE_BOT_PRIVATE_KEY }} + + - uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/orgs/usenocturne/projects/1 + github-token: ${{ steps.generate-token.outputs.token }}