forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New broken link report (github#16412)
* add linkinator npm package * add new script that uses Linkinator * reorg the excluded links file and update comments * replace blc artifacts with linkinator artifacts in .gitignore * update the scheduled workflow to use the new script * dismantle BLC scripts * add workflow_dispatch event so we can test this manually * npm uninstall broken-link-checker * use different exit codes depending on whether broken links are found
- Loading branch information
Showing
9 changed files
with
471 additions
and
1,007 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,20 @@ | ||
// Linkinator treats the following as regex. | ||
module.exports = [ | ||
// GitHub search links fail with "429 Too Many Requests" | ||
'https://github.com/search?*', | ||
// Skip GitHub search links. | ||
'https://github.com/search?.*', | ||
'https://github.com/github/gitignore/search?', | ||
|
||
// LinkedIn links fail due to bug: https://github.com/stevenvachon/broken-link-checker/issues/91 | ||
'https://www.linkedin.com/*', | ||
|
||
// blc returns "BLC_UNKNOWN" on this link, even though cURL returns "302 Found" | ||
'https://www.ilo.org/dyn/normlex/en/f?p=NORMLEXPUB:12100:0::NO::P12100_ILO_CODE:P029', | ||
|
||
// the codercat link works but blc reports a false 404 | ||
'https://github.com/Codertocat/hello-world-npm/packages/10696?version=1.0.1', | ||
|
||
// this URL started returning 403 to blc and cURL even though it works in a browser; see docs-internal #10124 | ||
'https://haveibeenpwned.com/', | ||
'https://haveibeenpwned.com/*', | ||
|
||
// this is a private repo customers are given access to when they purchase Insights; see docs-internal #12037 | ||
// These links require auth. | ||
'https://github.com/settings/profile', | ||
'https://github.com/github/docs/edit', | ||
'https://github.com/github/insights-releases/releases/latest', | ||
|
||
// developer content uses these for examples; they should not be checked | ||
'http://localhost:1234/*', | ||
// Developer content uses these for examples; they should not be checked. | ||
'http://localhost:1234', | ||
'localhost:3000', | ||
|
||
// this URL works but blc reports a false 404 | ||
// Oneoff links that link checkers think are broken but are not. | ||
'https://haveibeenpwned.com/', | ||
'https://www.ilo.org/dyn/normlex/en/f?p=NORMLEXPUB:12100:0::NO::P12100_ILO_CODE:P029', | ||
'http://www.w3.org/wiki/LinkHeader/' | ||
] |
Oops, something went wrong.