Skip to content

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

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 19 open now; the newest labelled one is #72.

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-python.myst is QuantEcon/lecture-python.myst#1143; 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

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 are reported for the link-checking workflow update.

No open issues 🎉

What changed in this PR

Updates the link-checking workflow to reuse an open “Link Checker Report” issue instead of creating a new issue on every failing run.

Changes:

  • Finds the newest open report matching the linkchecker label and report title.
  • Passes its issue number to the reporting action, creating a new issue when no match exists.
  • Leaves lychee behavior and older reports unchanged.
File Description
.github/​workflows/​linkcheck.yml Adds report lookup and connects the matching issue number to the issue-reporting action.

Review effort: Balanced (adaptive)

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