Skip to content

[Feature]: consolidate PR event gate workflows to cut Actions run volume #7654

Closed

Description

@lidge-jun

Area

Other

What are you trying to accomplish?

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.
  • I removed secrets and personal data.

Activity

  1. added
    enhancement
    on Oct 24, 2026
  2. added a commit that references this issue on Nov 11, 2026
    081f641
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions