👷 Adds GH action to assign reviewer based on code owner

This commit is contained in:
Alicia Sykes 2021-08-07 15:13:01 +01:00
parent 179c9edbdf
commit 61a3e6ba54
1 changed files with 13 additions and 0 deletions

13
.github/workflows/assign-reviewer.yml vendored Normal file
View File

@ -0,0 +1,13 @@
# Automatically assigns a reviewer to a PR, based on who owns the modified files
# Uses the ./.github/CODEOWNERS file to determine ownership of file patterns
on: [pull_request]
jobs:
autolabeler-codeowners:
runs-on: ubuntu-latest
name: Assign Reviewer
steps:
- uses: actions/checkout@v1
- name: Find code owner, assign reviewer
uses: pratikmallya/autolabeler-codeowners@master
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}