Skip to content

Commit 2d47504

Browse files
feat: add url rewrites feature (#73)
* feat: add url rewrites feature * npm run build Co-authored-by: BeckwithRobot <[email protected]>
1 parent 3c1fe81 commit 2d47504

File tree

9 files changed

+4155
-3378
lines changed

9 files changed

+4155
-3378
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
- `serverRoot` - When scanning a locally directory, customize the location on disk where the server is started. Defaults to the root of your GitHub repository.
5353
- `directoryListing` - Include an automatic directory index file when linking to a directory. Defaults to `false`.
5454
- `retry` - Automatically retry requests that return HTTP 429 responses and include a `retry-after` header.
55+
- `urlRewriteSearch` - Pattern to search for in urls. Must be used with `urlRewriteReplace`.
56+
- `urlRewriteReplace` - Expression used to replace search content. Must be used with `urlRewriteSearch`.
5557
- `verbosity` - Override the default verbosity for this command. Available options are "DEBUG", "INFO", "WARNING", "ERROR", and "NONE". Defaults to "WARNING".
5658

5759
## Outputs

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ inputs:
4949
config:
5050
description: Path to a config file to use. Looks for `linkinator.config.json` by default. Options defined via the GitHub Action config will take precedence.
5151
required: false
52+
urlRewriteSearch:
53+
description: Pattern to search for in urls. Must be used with `urlRewriteReplace`.
54+
required: false
55+
urlRewriteReplace:
56+
description: Expression used to replace search content. Must be used with `urlRewriteSearch`.
57+
required: false
5258
outputs:
5359
results:
5460
description: 'The full results of the scan.'

0 commit comments

Comments
 (0)