ci: update link checker rule#18192
Open
SWHL wants to merge 4 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the documentation link-check CI workflow to reduce noisy reports by adjusting lychee’s CLI arguments, aiming to avoid flagging redirecting links and focusing on truly broken URLs (e.g., 404).
Changes:
- Switch lychee exclusions from
--excludeto--exclude-pathfor skipping specific docs files. - Add an
--acceptstatus-code allowlist to reduce redirect-related noise in link-check results.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
| with: | ||
| args: --exclude 'docs/index/*.md' 'docs/update/*.md' --verbose --no-progress --max-redirects 8 'docs/**/*.md' | ||
| args: --exclude-path 'docs/index/*.md' 'docs/update/*.md' --verbose --accept 100..=103,200..=299,301,302,520,521,522,524 --no-progress --max-redirects 8 'docs/**/*.md' |
cuicheng01
reviewed
Jun 22, 2026
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
| with: | ||
| args: --exclude 'docs/index/*.md' 'docs/update/*.md' --verbose --no-progress --max-redirects 8 'docs/**/*.md' | ||
| args: --exclude-path 'docs/index/*.md' 'docs/update/*.md' --verbose --accept 100..=103,200..=299,300..=399,520,521,522,524 --no-progress --max-redirects 8 'docs/**/*.md' |
Collaborator
There was a problem hiding this comment.
既然再改这块的内容了,减少冗余输出,是不是可以去掉--verbose呢?
cuicheng01
approved these changes
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
当前代码中链接是否有效的CI报告过于冗余。其中一些重定向的链接也给报告出来了。可实际上只想让其报告哪些404的URL。
当前PR就是修复这个问题的,减少现在报告信息的冗余。