mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 04:55:22 +00:00
Switch event to use pull_request_target (#2807)
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>
This commit is contained in:
7
.github/workflows/auto_assign_prs.yml
vendored
7
.github/workflows/auto_assign_prs.yml
vendored
@@ -1,5 +1,10 @@
|
||||
name: 'Auto Assign PR Reviewers'
|
||||
on: pull_request
|
||||
# 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:
|
||||
|
||||
Reference in New Issue
Block a user