From cc2bd9834434e7db3b946503d72db6739234189c Mon Sep 17 00:00:00 2001 From: Pete Littlewood Date: Wed, 3 Apr 2024 16:47:27 +0100 Subject: [PATCH] chore: add platform project issue assignment workflow --- .github/new-issue-assignment.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/new-issue-assignment.yml diff --git a/.github/new-issue-assignment.yml b/.github/new-issue-assignment.yml new file mode 100644 index 0000000..5326fa3 --- /dev/null +++ b/.github/new-issue-assignment.yml @@ -0,0 +1,28 @@ +name: Add to internal Backlog + +on: + issues: + types: + - opened + +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: gh issue edit "$NUMBER" --add-label "$LABELS" + env: + GH_TOKEN: ${{ secrets.GH_PLATFORM_BOT_PAT }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} + LABELS: refinement + + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v1.0.0 + with: + project-url: https://github.com/orgs/reapit/projects/18 + github-token: ${{ secrets.GH_PLATFORM_BOT_PAT }} \ No newline at end of file