Implement automation to automatically assign the team a PR author belongs to for reviewing the PR.

This commit is contained in:
Darren Ethier 2021-09-17 16:27:09 -04:00 committed by GitHub
parent a8bbc4dc37
commit 33dc689ca9
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,17 @@
when:
- author:
teamIs:
- rubik-fp-squad
ignore:
nameIs:
assign:
teams:
- rubik-fp-squad
- author:
teamIs:
-rubik-fse-squad
ignore:
nameIs:
assign:
teams:
-rubik-fse-squad

View File

@ -0,0 +1,11 @@
name: 'Automate assigning team for review.'
on: pull_request
jobs:
add-reviews:
runs-on: ubuntu-latest
steps:
- name: Check config and assign reviews
uses: acq688/Request-Reviewer-For-Team-Action@v1.1
with:
config: ".github/automate-team-review-assignment-config.yml"
GITHUB_TOKEN: ${{ secrets.PAT_FOR_ACTIONS }}