leandrols_linksnitch

command module
v0.0.0-...-961b980 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 11 Imported by: 0

README

linksnitch 🔗

A GitHub Action that automatically check the status codes response of links in README.md. Useful for checking broken links.

How to use

In your .yml workflow file:

name: A workflow that check if links in README.md is working
on: push
jobs:
  build:
    name: Check if README.md links work
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: LeandroLS/linksnitch@main
        with:
          allowedStatusCodes: '[200, 201]'

In allowdStatusCodes you can set all the status codes that your links can return. If your README.md has some link that don't return one of the status codes set in allowedStatusCodes the workflow will fail and will show to you what links is broken.

Badges

test

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL