-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint: Add GH action to find HTTP resources returning a 404 error code
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# folder: docs/ # The folder that required to be parsed | ||
httpsOnly: true # If you want enforce only HTTPS links | ||
pullRequestReview: true # If you want a nice review in your pull requests | ||
ignore: | ||
urls: # Array of url to ignore, wildcarded | ||
files: # Array of markdown file the action shouldn't parse. Addressed by relative path from the folder shared above | ||
delay: | ||
# 'https://gitlab.com': 500 # Perform a pause of 500ms at each call matching the url |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Markdown lint | ||
# https://github.com/marketplace/actions/404-links | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
types: [assigned, opened, synchronize, reopened] | ||
|
||
jobs: | ||
check-links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 'restqa-404-links' | ||
uses: restqa/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |