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
pr-triage: the caller runs a job for every edited event, also when only the title or body changed #237
The PR triage caller runs a job for every edited event. Most edited events change only the PR title or body. The job then starts a runner, writes the scripts, and runs the levels step again on the same files and the same base. The result does not change. In a private repository, each such run costs 1 billed minute.
The spec needs edited only for a change of the base branch (risk-paths spec, E: "An edited event includes a change of the base branch").
Facts (frostyard/pocket, PR triage runs since 2026-11-12)
174 runs, all pull_request_target, each 1 billed minute. I sorted them by the steps that ran:
Steps that ran
Event
Runs
levels and readiness
synchronize
51
readiness only
labeled with ready-for-human
42
levels only
opened, reopened or edited
81
no step
labeled with another label
0
40 PRs were opened in that period. So about 41 of the 81 levels-only runs are edited (or reopened) events: about 24% of the runs. Agents edit PR bodies often (review results, before-and-after tables).
labeled with another label gave 0 runs in pocket. But such a run would start a runner and skip every step, so it costs 1 minute for no work.
Proposal
Add a job-level if: to the caller, so that GitHub skips the job and starts no runner:
A skipped job costs 0 minutes. The check pr-triage / pr-triage then shows as skipped. It is not a required check, and the readiness step already leaves out check runs whose name starts with pr-triage.
This needs a change to the spec (rule A, the caller lines) and to the baseline check of the caller lines in each repository (for example apt-publisher tests/check-baseline.sh, case b6_caller_extra_line), so that the new line is allowed. Then the callers can take it.
Not in scope
The other event types do work: synchronize (levels and readiness), labeled with ready-for-human (readiness), opened and reopened (levels). The minutes matter only in private repositories: public repositories run free on standard runners.
Activity