Skip to content

Commit ef36c8a

Browse files
nos1dot618claude
andcommitted
ci: check github source links through raw.githubusercontent.com
Even paced, github.com still answered some source page requests with 503. Remapping blob links to the raw CDN checks that the same files exist without hitting the rate limit. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 43daff8 commit ef36c8a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎lychee.toml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,19 @@ timeout = 20
1919
# 429 means rate limited, not broken.
2020
accept = ["200..=299", "429"]
2121

22+
# Check source files on raw.githubusercontent.com, a CDN, instead of their
23+
# github.com pages: github.com rate-limits a burst of page requests with 503.
24+
remap = [
25+
'^https://github\.com/([^/]+/[^/]+)/blob/(.+)$ https://raw.githubusercontent.com/$1/$2',
26+
]
27+
2228
exclude = [
2329
# The site's own absolute URLs (canonical links, the sitemap) point at the
2430
# deployed copy; the same pages are checked as local files instead.
2531
'^https://lambda-discipline\.github\.io',
2632
]
2733

28-
# github.com answers a burst of page requests (every example links to its
29-
# source there) with 503 Service Unavailable, so pace requests to it.
34+
# Pace the remaining github.com requests (repository and organization pages).
3035
[hosts."github.com"]
3136
concurrency = 2
3237
request_interval = "500ms"

0 commit comments

Comments
 (0)