ci(reserved-path-review): re-post BP-required (pull_request_target) context on review events #3151
Reference in New Issue
Block a user
Delete Branch "feat/reserved-path-review-refire"
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?
Fixes the reserved-path-review refire gap identified in #3141: the workflow evaluates on
pull_request_reviewbut only auto-publishes the(pull_request_review)status context, while branch protection requires the(pull_request_target)variant. This PR adds the explicit BP-context re-post step, mirroringqa-review.yml.Scope: only
.gitea/workflows/reserved-path-review.yml.Post-merge owner action: once merged, CTO adds
reserved-path-review / reserved-path-review (pull_request_target)tobranch_protections/main.status_check_contexts. The allowlist in.gitea/required-contexts.txtalready includesreserved-path-review / reserved-path-review(line 53, added in #3142), so BP⊆allowlist remains lint-clean.SOP Checklist
lint-workflow-yaml.pyandlint_required_context_exists_in_bp.pypassed locally; change mirrors the proven pattern inqa-review.yml.pull_request_review, while BP waits for(pull_request_target).feedback_phantom_required_check_after_gitea_migration, RFC#324 reserved-path-review design,feedback_runner_squat_rca_2026_06_01.Part of #3141 (remaining owner action: BP flip after merge).
APPROVED on current head
6469bd5727.5-axis review:
(pull_request_target)context based on that outcome.always()on review events and publishes failure unless the evaluator succeeded, so no qualifying non-author approval remains red instead of false-green.reserved-path-review / reserved-path-review (pull_request_target), matching the intended BP context.5-axis current-head review clean. This mirrors qa-review's pull_request_review refire pattern: it reuses the existing reserved-path evaluator outcome, posts the exact BP context 'reserved-path-review / reserved-path-review (pull_request_target)' to the PR head, succeeds only when the evaluator succeeds, and fails closed otherwise. Non-author approval detection remains in the base-branch reserved-path-review.sh script, including author != approver and current-head/non-dismissed review filtering. Diff is limited to reserved-path-review.yml; no unrelated logic changes.