mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-02-11 22:31:13 +00:00
The pull_request_target event is like pull_request, but runs in the context of the target repo (Velero, in this case), instead of the fork. This allows us to use the GitHub token secret as expected. Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
17 lines
490 B
YAML
17 lines
490 B
YAML
name: 'Auto Assign PR Reviewers'
|
|
# pull_request_target means that this will run on pull requests, but in the context of the base repo.
|
|
# This should mean PRs from forks are supported.
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, reopened, sychronized]
|
|
|
|
|
|
jobs:
|
|
add-reviews:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: kentaro-m/auto-assign-action@v1.1.1
|
|
with:
|
|
configuration-path: ".github/auto_assign.yml"
|
|
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|