Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint: Add GH action to find HTTP resources returning a 404 error code #670

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .404-links.yml
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
17 changes: 17 additions & 0 deletions .github/workflows/markdown-lint.yml
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 }}
Loading