Skip to content

Skip r-universe links in check-link-rot - #129

Merged
strengejacke merged 1 commit into
mainfrom
exclude-r-universe-links
Dec 2, 2026
Merged

strengejacke merged 1 commit into
mainfrom
exclude-r-universe-links

Conversation

@jmgirard

@jmgirard jmgirard commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

check-link-rot.yaml has failed on every insight PR since at least Nov 26. The only error is [403] https://easystats.r-universe.dev/ from the README, and that link works in a browser. r-universe is behind a Cloudflare bot challenge, so an automated request gets a 403 (the response has cf-mitigated: challenge), and lychee can't get past it. All 11 easystats packages link to r-universe in their README and call this workflow, so any of them can fail the same way.

This adds args to the lychee step with --exclude 'r-universe\.dev', so lychee skips r-universe links. Setting args replaces the action's default arguments, so the line also repeats the defaults of lychee-action v2.9.0 (--verbose --no-progress './**/*.md' './**/*.html' './**/*.rst'). A comment on the step says why. Links on other sites are still checked.

To test it, I pointed insight's check-link-rot caller at this branch from a test branch on my fork. The check passed, and both r-universe links in insight's README (the r-universe page and its badge) were marked as excluded:
https://github.com/jmgirard/insight/actions/runs/46921751777

Locally, lychee 0.24.2 (the version the action uses) still reports a 404 for a GitHub link in report's README, so the check still catches failing links on other sites. actionlint is clean.

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, and the narrowly scoped workflow update documents the r-universe exclusion while preserving lychee’s default arguments.

No open issues 🎉

What changed in this PR

Updates the reusable link-rotation workflow to exclude r-universe links blocked by Cloudflare.

Changes:

  • Adds an r-universe exclusion to lychee.
  • Preserves lychee’s default arguments.
  • Documents the exclusion rationale.
File Description
.github/​workflows/​check-link-rot.yaml Configures lychee to skip r-universe links while retaining checks for other documentation links.

Review effort: Lite

@strengejacke
strengejacke merged commit b31ecb8 into main Dec 2, 2026
4 checks passed
@strengejacke
strengejacke deleted the exclude-r-universe-links branch December 2, 2026 18:40
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.

3 participants