From 61a3e6ba54996c098a5e672476b3dc28533f5997 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 7 Aug 2021 15:13:01 +0100 Subject: [PATCH] :construction_worker: Adds GH action to assign reviewer based on code owner --- .github/workflows/assign-reviewer.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/assign-reviewer.yml diff --git a/.github/workflows/assign-reviewer.yml b/.github/workflows/assign-reviewer.yml new file mode 100644 index 00000000..f6f8d1a5 --- /dev/null +++ b/.github/workflows/assign-reviewer.yml @@ -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 }}