Try a different autoassign action (#2093)

This removes the separate data files, which have been failing to load properly ([example](https://github.com/carbon-language/carbon-lang/runs/7957047892?check_suite_focus=true)). This one wasn't working previously, but hopefully will with these changes (and it might've also just been a pull_request_target issue, but the silent "Resource not accessible by integration" failures aren't great).
This commit is contained in:
Jon Ross-Perkins
2022-08-23 12:13:19 -07:00
committed by GitHub
parent ed3a81aa08
commit 2bc6da2967
6 changed files with 15 additions and 124 deletions
+13 -42
View File
@@ -4,7 +4,7 @@
name: 'Auto Assign'
on:
pull_request:
pull_request_target:
types: [opened, ready_for_review]
jobs:
@@ -30,60 +30,31 @@ jobs:
- id: assign-leads
if: steps.changes.outputs.leads == 'true'
uses: kentaro-m/auto-assign-action@v1.2.1
uses: hkusu/review-assign-action@v1.3.0
with:
configuration-path: '.github/assign_prs/leads.yaml'
reviewers: KateGregory, chandlerc, zygoloid
max-num-of-reviewers: 1
- id: assign-explorer
if: steps.changes.outputs.explorer == 'true'
uses: kentaro-m/auto-assign-action@v1.2.1
uses: hkusu/review-assign-action@v1.3.0
with:
configuration-path: '.github/assign_prs/explorer.yaml'
reviewers: geoffromer, jonmeow, jsiek, zygoloid
max-num-of-reviewers: 1
- id: assign-toolchain
if: steps.changes.outputs.toolchain == 'true'
uses: kentaro-m/auto-assign-action@v1.2.1
uses: hkusu/review-assign-action@v1.3.0
with:
configuration-path: '.github/assign_prs/toolchain.yaml'
reviewers: chandlerc, jonmeow, zygoloid
max-num-of-reviewers: 1
- id: assign-fallback
if:
steps.changes.outputs.leads != 'true' &&
steps.changes.outputs.explorer != 'true' &&
steps.changes.outputs.toolchain != 'true'
uses: kentaro-m/auto-assign-action@v1.2.1
uses: hkusu/review-assign-action@v1.3.0
with:
configuration-path: '.github/assign_prs/fallback.yaml'
# TODO: Consider the below. While private it currently fails more sharply, but
# may be a better post-public choice.
#
# - id: assign-leads
# if: steps.changes.outputs.leads == 'true'
# uses: hkusu/review-assign-action@v1.3.0
# with:
# reviewers: KateGregory, chandlerc, zygoloid
# max-num-of-reviewers: 1
#
# - id: assign-explorer
# if: steps.changes.outputs.explorer == 'true'
# uses: hkusu/review-assign-action@v1.3.0
# with:
# reviewers: geoffromer, jonmeow, jsiek, zygoloid
# max-num-of-reviewers: 1
#
# - id: assign-toolchain
# if: steps.changes.outputs.toolchain == 'true'
# uses: hkusu/review-assign-action@v1.3.0
# with:
# reviewers: chandlerc, jonmeow, zygoloid
# max-num-of-reviewers: 1
#
# - id: assign-fallback
# if:
# steps.changes.outputs.leads != 'true' &&
# steps.changes.outputs.explorer != 'true' &&
# steps.changes.outputs.toolchain != 'true'
# uses: hkusu/review-assign-action@v1.3.0
# with:
# reviewers: chandlerc, jonmeow, josh11b, zygoloid
# max-num-of-reviewers: 1
reviewers: chandlerc, jonmeow, josh11b, zygoloid
max-num-of-reviewers: 1