mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-07-27 10:32:39 +00:00
Add repository guard (github.repository == 'velero-io/velero') to workflows that should only run on the upstream repo. This prevents unnecessary CI runs on forks like openshift/velero where these workflows either fail due to missing secrets/config or duplicate fork-specific CI. Guarded workflows: auto_assign_prs, auto_label_prs, auto_request_review, e2e-test-kind, nightly-trivy-scan, pr-changelog-check, pr-codespell, pr-filepath-check, pr-linter-check, prow-action, rebase, stale-issues. Intentionally left unguarded: pr-ci-check (useful for contributors on forks), get-go-version (reusable workflow_call only). Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
23 lines
564 B
YAML
23 lines
564 B
YAML
---
|
|
name: "Auto Request Review"
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, ready_for_review, reopened]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
auto-request-review:
|
|
if: github.repository == 'velero-io/velero'
|
|
name: Auto Request Review
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Request a PR review based on files types/paths, and/or groups the author belongs to
|
|
uses: necojackarc/auto-request-review@v0.13.0
|
|
with:
|
|
config: .github/auto-assignees.yml
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|