You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: consolidate PR event gate workflows to cut Actions run volume #7654
Cut the Actions run volume per pull request. Over 1000 runs on 2026-10-23 12:12Z to 2026-10-24 02:15Z (14h): Enforce PR target 287 (166 pull_request_target + 121 status), PR Labeler 151, PR hygiene 151, Enforce issue quality 174 issue_comment (171 skipped), against only 58 pull_request runs of Cross-platform CI.
What prevents this today?
Three separate pull_request_target workflows (enforce-pr-target.yml, pr-hygiene.yml, pr-labeler.yml) each subscribe to opened/edited/synchronize/labeled/unlabeled, so every description edit or label toggle starts three runs. status and issue_comment have no trigger-level filters, so their job-level if: guards (already correct) still create a skipped run per event. The ci-slim PR only path-scopes pull_request jobs; the event gates were left unchanged on purpose because job-level skips interact with their concurrency groups (see the pr-hygiene pending-run issue).
What should OpenCodex do?
Consolidate the PR event gates into one pull_request_target workflow with jobs for label, hygiene, and enforce-target (hygiene and enforce already share the pr-gate-comment- group), using job-scoped concurrency so skipped jobs never enter a group. That turns 3 runs per PR event into 1 without changing any check's logic.
Example usage or interface
One "PR gates" run per pull_request_target event showing jobs label, hygiene, resolve-pr, enforce-target.
Alternatives or workarounds
Accept the noise; skipped runs consume no runner minutes.
Additional context
Must land on main (pull_request_target/status/issue_comment workflows load from the default branch) and keep the existing trust-boundary tests in tests/ci-workflows/ and .github/scripts/*.test.cjs.
Checks
I searched existing issues and documentation.
This request describes a concrete OpenCodex workflow rather than merely naming a desired technology.
Activity
ci: run the three PR gates as one pull_request_target workflow (lidge…