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"