ci: branch rules (#4525)

This commit is contained in:
Alex Yang
2025-09-08 10:15:36 -07:00
committed by GitHub
parent e15113737a
commit 81b0acb78e

View File

@@ -29,12 +29,6 @@ jobs:
docs:
- 'docs/**'
- name: Enforce docs-only PRs target main
if: steps.filter.outputs.docs == 'true' && steps.filter.outputs.src == 'false' && github.base_ref != 'main'
run: |
echo "Error: Pull requests that only change documentation must target the 'main' branch."
exit 1
- name: Enforce code change PRs target canary or staging
if: steps.filter.outputs.src == 'true' && github.base_ref != 'canary' && !startsWith(github.base_ref, 'v')
run: |