You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat: upgrade to linkinator 7.4 and add statusCodes and redirects options (#216)
* feat: upgrade to linkinator 7.4 and add statusCodes and redirects options
This update brings linkinator to version 7.4.0 and exposes new configuration
options for more flexible link validation:
- statusCodes: Map HTTP status codes to actions (ok, warn, skip, error)
with support for patterns like 4xx and 5xx
- redirects: Configure how to handle HTTP redirects (allow, warn, or error)
The new options enable users to customize which status codes should be
treated as errors, warnings, or skipped, providing greater control over
link validation behavior.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* npm run build
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: BeckwithRobot <justin.beckwith+beckwithrobot@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,8 @@ jobs:
66
66
- `cleanUrls`- Enable support for clean URLs (extensionless paths). Allows validation of URLs without file extensions, useful for modern static hosting. Defaults to `false`.
67
67
- `checkCss`- Enable parsing and extraction of URLs from CSS files, style blocks, and inline styles. Defaults to `false`.
68
68
- `checkFragments`- Enable validation of fragment identifiers (anchor links) on HTML pages. Defaults to `false`.
69
+
- `statusCodes` - JSON object mapping HTTP status codes to actions (`ok`, `warn`, `skip`, `error`). Supports patterns like `4xx` or `5xx`. Example: `{"404": "error", "5xx": "warn", "301": "ok"}`.
70
+
- `redirects` - How to handle HTTP redirects. Options: `allow`(default), `warn`, or `error`.
69
71
- `urlRewriteSearch`- Pattern to search for in urls. Must be used with `urlRewriteReplace`.
70
72
- `urlRewriteReplace`- Expression used to replace search content. Must be used with `urlRewriteSearch`.
71
73
- `verbosity`- Override the default verbosity for this command. Available options are "DEBUG", "INFO", "WARNING", "ERROR", and "NONE". Defaults to "WARNING".
Copy file name to clipboardExpand all lines: action.yml
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,13 @@ inputs:
90
90
description: Enable validation of fragment identifiers (anchor links) on HTML pages.
91
91
default: 'false'
92
92
required: false
93
+
statusCodes:
94
+
description: JSON object mapping HTTP status codes to actions (ok, warn, skip, error). Supports patterns like 4xx or 5xx. Example - {"404":"error","5xx":"warn"}
95
+
required: false
96
+
redirects:
97
+
description: How to handle HTTP redirects. Options - "allow" (default), "warn", or "error".
0 commit comments