Commit 4344752ec1d for woocommerce
commit 4344752ec1da868059424f90be28b03464b87ac7
Author: Vlad Olaru <vlad.olaru@automattic.com>
Date: Thu Sep 10 23:53:04 2026 +0300
[CI] Accept 402 responses in the docs link check (#68572)
ci(docs): accept 402 in the pull request link check
The pull-request docs link check fails only on responses that prove
a link is dead: 400, 404 and 410, plus transport failures. Its
comment, and the pull request that added it, say auth challenges do
not prove a link is dead. But the accept list names 401 and 403
separately and skips 402, so a 402 Payment Required from an approved
host fails the check.
Accept 401 through 403 as a range, so 402 passes like the other auth
responses and the comment is accurate as written. The scheduled crawl
keeps its stricter list.
Refs WOOAIRR-244
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
diff --git a/.github/workflows/docs-link-check/pr.toml b/.github/workflows/docs-link-check/pr.toml
index 2c45f37a752..6dc48e7fa0e 100644
--- a/.github/workflows/docs-link-check/pr.toml
+++ b/.github/workflows/docs-link-check/pr.toml
@@ -30,7 +30,7 @@ max_redirects = 0
# Only 400, 404, and 410 (plus transport failures) fail the check. Auth challenges, bot
# blocks, rate limits, and server errors do not prove a link is dead.
-accept = "200..=399,401,403,405..=409,411..=599"
+accept = "200..=399,401..=403,405..=409,411..=599"
timeout = 10
max_retries = 2
max_concurrency = 4