From c7a424e5e4639280202343941f3fbbba1d694a3e Mon Sep 17 00:00:00 2001 From: GovCMS service account Date: Thu, 8 Aug 2024 10:28:00 +1000 Subject: [PATCH] Update issue handling. --- .github/workflows/issues-opened.yml | 17 +++++++++++++++++ .../{stale-issues.yml => issues-stale.yml} | 0 .github/workflows/pull-request.yml | 18 ++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 .github/workflows/issues-opened.yml rename .github/workflows/{stale-issues.yml => issues-stale.yml} (100%) create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/workflows/issues-opened.yml b/.github/workflows/issues-opened.yml new file mode 100644 index 00000000..43a89257 --- /dev/null +++ b/.github/workflows/issues-opened.yml @@ -0,0 +1,17 @@ +name: Issue assignment + +on: + issues: + types: [opened] + +jobs: + auto-assign: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: "Auto-assign issue" + uses: pozil/auto-assign-issue@v2 + with: + assignees: steveworley,yusufhm + allowSelfAssign: false diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/issues-stale.yml similarity index 100% rename from .github/workflows/stale-issues.yml rename to .github/workflows/issues-stale.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 00000000..204a2939 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,18 @@ +name: PR assignment + +on: + pull_request: + types: [opened, edited, synchronize, reopened] + +jobs: + auto-assign: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: 'Auto-assign PR' + uses: pozil/auto-assign-issue@v2 + with: + repo-token: ${{ secrets.MY_PERSONAL_ACCESS_TOKEN }} + teams: support + numOfAssignee: 1