From 0eee61f8a57a10cf435038737b1668c16c094703 Mon Sep 17 00:00:00 2001 From: Jamie McCrae Date: Mon, 16 Sep 2024 10:36:37 +0100 Subject: [PATCH] ci: Add issue and PR assigner Adds actions that will automatically assign users to reviews and issues Signed-off-by: Jamie McCrae --- .github/workflows/issue.yml | 18 ++++++++++++++++++ .github/workflows/pr.yml | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/issue.yml create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml new file mode 100644 index 000000000..48388f9c7 --- /dev/null +++ b/.github/workflows/issue.yml @@ -0,0 +1,18 @@ +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: + repo-token: ${{ secrets.GITHUB_TOKEN }} + assignees: d3zd3z, nordicjm, de-nordic, davidvincze + allowSelfAssign: true diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 000000000..626473044 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,17 @@ +name: PR assignment + +on: + pull_request: + types: [opened, edited, synchronize, reopened] + +jobs: + auto-assign: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/checkout@v1 + - uses: ohnogumi/assign-reviewers@v0.0.5 + with: + token: "${{ secrets.GITHUB_TOKEN }}" + config: "CODEOWNERS"