Skip to content

Commit f1dc1ed

Browse files
committed
lint: Add GH action to find HTTP resources returning a 404 error code
1 parent 7e6bb7e commit f1dc1ed

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.404-links.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# folder: docs/ # The folder that required to be parsed
2+
httpsOnly: true # If you want enforce only HTTPS links
3+
pullRequestReview: true # If you want a nice review in your pull requests
4+
ignore:
5+
urls: # Array of url to ignore, wildcarded
6+
files: # Array of markdown file the action shouldn't parse. Addressed by relative path from the folder shared above
7+
delay:
8+
# 'https://gitlab.com': 500 # Perform a pause of 500ms at each call matching the url

.github/workflows/markdown-lint.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Markdown lint
2+
# https://github.com/marketplace/actions/404-links
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
types: [assigned, opened, synchronize, reopened]
8+
9+
jobs:
10+
check-links:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: 'restqa-404-links'
15+
uses: restqa/[email protected]
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)