Skip to content

Commit eead9dc

Browse files
fix(release): stale-prompts reads the unfiltered run list too, and says what it read (#20755)
Closes #20659 Clause-②: no (no `packages/spec` surface). `stale-prompts` no longer rests on the `?status=waiting` filter alone. It walks main's version commits, newest first, and finds each one's push run by `head_sha`. It stops at the first run created before GitHub's 30-day environment-wait cap. It checks that each run it finds carries that version's publish job, reads the run directly, and judges only that read. Its cost follows releases (15 requests per push today), not run volume. A filter omission, a version commit with no push run, and a run without its publish job are `::warning::` lines, and the readings are printed on every run. The job now checks out full history for the walk. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Sfe5YjBLwB9J3y8fvm2xq1 --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent c9c182e commit eead9dc

2 files changed

Lines changed: 321 additions & 34 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,13 +1060,19 @@ jobs:
10601060
runs-on: ubuntu-latest
10611061
permissions:
10621062
# `actions: write` is the cancel (POST .../runs/{id}/cancel); it also
1063-
# covers the three reads (waiting runs, their jobs, their pending
1064-
# deployments). `contents: read` is the checkout of the script.
1063+
# covers the reads (the waiting-runs list, the runs at each version
1064+
# commit's push, each named run, its jobs and its pending deployments).
1065+
# `contents: read` is the checkout.
10651066
actions: write
10661067
contents: read
10671068
steps:
1069+
# `fetch-depth: 0`: a push-lane prompt can only hang on the push that
1070+
# carried a version commit, and the sweep finds those on main's
1071+
# first-parent history; it refuses a shallow clone.
10681072
- name: Checkout repository
10691073
uses: actions/checkout@v7
1074+
with:
1075+
fetch-depth: 0
10701076

10711077
- name: Setup Node.js
10721078
uses: actions/setup-node@v7

0 commit comments

Comments
 (0)