Skip to content

fix(ci): exclude GitHub index URLs from lychee link checker#1018

Merged
max-sixty merged 1 commit intomainfrom
fix/ci-22014481654
Feb 14, 2026
Merged

fix(ci): exclude GitHub index URLs from lychee link checker#1018
max-sixty merged 1 commit intomainfrom
fix/ci-22014481654

Conversation

@worktrunk-bot
Copy link
Collaborator

Problem

The macOS CI job failed because lychee (link checker) got a 502 Bad Gateway when checking https://github.com/max-sixty/worktrunk/issues. The lychee config already excludes GitHub issue/PR/commit/actions URLs to avoid transient failures, but the exclusion patterns required a trailing slash:

"github\\.com/[^/]+/[^/]+/issues/"

This matches /issues/123 but not /issues (the index page). Six docs files link to https://github.com/max-sixty/worktrunk/issues without a trailing slash, so they weren't excluded and failed on a transient 502.

Solution

Remove the trailing slash from the commit, issues, and pull exclusion patterns so they match both index pages (/issues) and specific items (/issues/123). The actions pattern already lacked a trailing slash and was unaffected.

Alternatives considered

Could also add the specific URL github.com/max-sixty/worktrunk/issues as a separate exclusion, but fixing the generic patterns is more robust — it prevents the same issue for any GitHub repo URL referenced in docs.

Testing

  • Ran lychee --config .config/lychee.toml on the six affected files — 0 errors (previously 6)
  • Verified the patterns still match specific item URLs (e.g., /issues/123)
  • cargo test --lib --bins passes (491 tests)

🤖 Automated fix for failed run

The exclusion patterns for GitHub issue/PR/commit URLs required a
trailing slash, so they matched `/issues/123` but not `/issues` (the
index page). This caused lychee to check the index URLs, which
intermittently return 502 on GitHub Actions.

Remove the trailing slash from the patterns so they match both forms.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@worktrunk-bot worktrunk-bot added the automated-fix Automated CI fix label Feb 14, 2026
@max-sixty max-sixty merged commit d8d2669 into main Feb 14, 2026
21 checks passed
@max-sixty max-sixty deleted the fix/ci-22014481654 branch February 14, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-fix Automated CI fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants