Implement automation to automatically assign the team a PR author belongs to for reviewing the PR.
This commit is contained in:
parent
a8bbc4dc37
commit
33dc689ca9
17
plugins/woocommerce-blocks/.github/automate-team-review-assignment-config.yml
vendored
Normal file
17
plugins/woocommerce-blocks/.github/automate-team-review-assignment-config.yml
vendored
Normal 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
|
11
plugins/woocommerce-blocks/.github/workflows/automate-team-review-assignment-config.yml
vendored
Normal file
11
plugins/woocommerce-blocks/.github/workflows/automate-team-review-assignment-config.yml
vendored
Normal 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 }}
|
Loading…
Reference in New Issue