GitHub Action
none-shall-pass
v5
Latest version
none-shall-pass
is a GitHub action designed to identify and flag any broken links
within markdown files in your repository and wiki pages.
- In your GitHub repository, select the Actions tab and either add or edit a workflow.
- Search for
none-shall-pass
from the Marketplace tab on the right. - Copy and paste the yaml into your workflow.
[OR]
Copy & paste the following workflow definition into your project .github/workflows/none-shall-pass.yml
name: Validate hyperlinks in markdown files
on:
push:
workflow_dispatch:
jobs:
none-shall-pass:
runs-on: ubuntu-latest
steps:
- uses: thevickypedia/none-shall-pass@v5
- Commit your changes to trigger the workflow or run the workflow manually.
Use the options below to configure debug and fail state when broken links are found in the repository/wiki pages.
debug
- Iftrue
debug level logging is enabled. Defaults tofalse
owner
- Owner/Organization of the repository. Defaults to current owner/org namerepo
- Name of the repository. Defaults to current repository's nameexcludeHostnames
- Space separated list of hostnames to ignore when failed. Defaults to""
failOnError
- Iftrue
(Default isfalse
) the action will fail if broken links are found. Defaults tofalse
excludeHostnames
will perform a regex like lookup, so wildcards (*) are not required
To exclude any URL with
amazon
/amzn
in it simply specify,excludeHostnames: "amazon amzn"
Requirement
python -m pip install gitverse
Usage
gitverse-release reverse -f release_notes.rst -t 'Release Notes'
Requirement
pip install sphinx==5.1.1 sphinx-rtd-theme recommonmark requests
Usage
bash pre_commit.sh
© Vignesh Rao
Licensed under the MIT License