ci: restrict push-event CI to protected branches (halve feature-branch load) #721
Reference in New Issue
Block a user
Delete Branch "fix/ci-push-protected-only"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every feature-branch push currently triggers two Woodpecker pipelines —
ci/woodpecker/push/ciandci/woodpecker/pr/ci— doubling load on the storage-constrained (spinning-disk) runner.The push run on feature branches is redundant: the pull_request pipeline is the merge gate. This change runs push CI only on
main, while PR + manual CI still run on every branch.mainbranch protection requires nopush/cistatus context (verifiedenable_status_check: false);mainstill gets full push CI on mergeApproved by Jason 2026-07-12 to relieve the queue while the SSD is pending.
🤖 Generated with Claude Code
VERIFIED APPROVE reviewer-of-record [W-jarvis:reviewer] head
5c7aaac955Reviewed PR #721 as non-author against
mainat exact head5c7aaac95527043a81b564c21eed4ac25262ac4a.Evidence:
fix/ci-push-protected-onlyboth resolve to5c7aaac95527043a81b564c21eed4ac25262ac4a..woodpecker/ci.yml; no source/runtime logic changes.whennow runspull_requestandmanualevents on any branch, whilepushevents are restricted tobranch: main.5c7aaac95527043a81b564c21eed4ac25262ac4aand is terminalsuccess;pr-ci-wait -n 721reportsci/woodpecker/pr/ci: success.enable_status_check: falseandstatus_check_contexts: null, so nopush/cistatus context is required by branch protection.git diff --checkclean.5c7aaac95527043a81b564c21eed4ac25262ac4a.No merge performed by reviewer.