Skip to content

Refresh one Link Checker Report instead of opening a new one each run - #1143

Merged
mmcky merged 1 commit into
mainfrom
fix/linkcheck-one-report
Nov 22, 2026
Merged

mmcky merged 1 commit into
mainfrom
fix/linkcheck-one-report

Conversation

@mmcky

@mmcky mmcky commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Every failing run of linkcheck.yml files a new "Link Checker Report" issue, because the issue step gives peter-evans/create-issue-from-file no issue-number. There are 22 open now; the newest labelled one is #1130.

This adds a "Find Open Report" step before the issue step. It looks up the newest open report (label linkchecker, title "Link Checker Report") and passes its number as issue-number, so the action updates that issue in place. With none open, the number is empty and the action files a new issue, as it does now. lychee and its arguments are unchanged, and the older reports are left as they are.

The same change for lecture-dp is QuantEcon/lecture-dp#82; the two merge as a set.

See QuantEcon/actions#194 for the decision to keep lychee with one report.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMYi9AZHg29XQAH3w7N

The issue step passed no issue-number to create-issue-from-file, so
every failing run filed a new "Link Checker Report". A new step looks
up the newest open report and passes its number, so the action updates
that issue in place. With none open, the number is empty and the
action files a new one, as before. lychee is unchanged.

See QuantEcon/actions#194.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMYi9AZHg29XQAH3w7N

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the workflow change that refreshes an existing link-check report issue.

No open issues 🎉

What changed in this PR

Updates the link-checking workflow to refresh an existing report issue instead of creating a new issue for every failing run.

Changes:

  • Finds the newest open report matching the linkchecker label and title search.
  • Passes its issue number to the reporting action, preserving new-issue creation when no report is open.
  • Leaves lychee checks and older report issues unchanged.
File Description
.github/​workflows/​linkcheck.yml Adds an open-report lookup and supplies its issue number to the reporting action.

Review effort: Balanced (adaptive)

@github-actions

Copy link
Copy Markdown

mmcky added a commit to QuantEcon/lectures that referenced this pull request Nov 23, 2026
…ure-python.myst#1140

`tools/sync --update --pin-only intermediate` moves intermediate's pin
from 220fb97 to deb4bda. That range is three commits:
QuantEcon/lecture-python.myst#1143 (its link-checker workflow),
QuantEcon/lecture-python.myst#1144 (eight lectures, _toc.yml and 18 new
bibliography entries) and QuantEcon/lecture-python.myst#1140 (its
bibliography's ruled entries). The eight lectures are pool copies that
take intermediate's, so the nightly drift-check brings them in through
its refresh pull request, and it reports the toc change for
re-acceptance; this pull request changes no pool lecture.

`tools/bib-merge --reconstruct --write` then regenerates
lectures/_static/quant-econ.bib: 1011 entries (993 before), 42
conflicts, 60 rulings, no refusal. Its header reads
intermediate=4892e8b2ec406dac, rulings 2b2a03b4c9c9712f and body
09c6b1bb96f6b12e. The only change to the entries is the 18 new ones from
QuantEcon/lecture-python.myst#1144, each held by intermediate alone, so
none needs a ruling.

The six re-seals' notes now carry 2026-11-23, the day
QuantEcon/lecture-python.myst#1140 merged (00:09 UTC). The branch took
main (267e58e) in a merge commit first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants