Skip to content

ci: update link checker rule#18192

Open
SWHL wants to merge 4 commits into
PaddlePaddle:mainfrom
SWHL:main
Open

ci: update link checker rule#18192
SWHL wants to merge 4 commits into
PaddlePaddle:mainfrom
SWHL:main

Conversation

@SWHL

@SWHL SWHL commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

当前代码中链接是否有效的CI报告过于冗余。其中一些重定向的链接也给报告出来了。可实际上只想让其报告哪些404的URL。

当前PR就是修复这个问题的,减少现在报告信息的冗余。

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.

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 --exclude to --exclude-path for skipping specific docs files.
  • Add an --accept status-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.

Comment thread .github/workflows/link_check.yml Outdated
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'
@SWHL SWHL requested a review from GreatV June 22, 2026 08:28
GreatV
GreatV previously approved these changes Jun 22, 2026

@GreatV GreatV left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SWHL SWHL removed the request for review from cuicheng01 June 22, 2026 12:29
Comment thread .github/workflows/link_check.yml Outdated
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'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

既然再改这块的内容了,减少冗余输出,是不是可以去掉--verbose呢?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以的,已经去掉了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants