Coder Social home page Coder Social logo

freshyill / linkinator-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from justinbeckwith/linkinator-action

0.0 0.0 0.0 4.13 MB

A GitHub Action that checks your README and other markdown for 404s.

License: MIT License

JavaScript 100.00%

linkinator-action's Introduction

linkinator-action

A happy little GitHub Action that checks your README.md and other markdown for broken links. Uses linkinator under the hood.

Example usage

With no arguments, this will scan your README.md in the root of the GitHub repository:

on:
  push:
    branches:
      - main
  pull_request:
name: ci
jobs:
  linkinator:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: JustinBeckwith/linkinator-action@v1

Or you can pass many of the same parameters linkinator provides!

on:
  push:
    branches:
      - main
  pull_request:
name: ci
jobs:
  linkinator:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: JustinBeckwith/linkinator-action@v1
        with:
          paths: test/fixtures/test.md
          concurrency: 1
          markdown: true
          linksToSkip: "http://fake.local, http://fake.local/fake"

Inputs

  • paths - Paths to scan for 404s. Defaults to *.md.
  • config - Path to a config file to use. Looks for linkinator.config.json by default. Options defined via the GitHub Action config will take precedence.
  • concurrency - The number of connections to make simultaneously. Defaults to 100.
  • recurse - Recursively follow links on the same root domain. Defaults to false.
  • linksToSkip - List of urls in regexy form to not include in the check. (skip is also accepted)
  • timeout - Request timeout in ms. Defaults to 0 (no timeout).
  • markdown - Automatically parse and scan markdown if scanning from a location on disk. Defaults to true.
  • serverRoot - When scanning a local directory, customize the location on disk where the server is started. Defaults to the root of your GitHub repository.
  • directoryListing - Include an automatic directory index file when linking to a directory. Defaults to false.
  • retry - Automatically retry requests that return HTTP 429 responses and include a retry-after header.
  • urlRewriteSearch - Pattern to search for in urls. Must be used with urlRewriteReplace.
  • urlRewriteReplace - Expression used to replace search content. Must be used with urlRewriteSearch.
  • verbosity - Override the default verbosity for this command. Available options are "DEBUG", "INFO", "WARNING", "ERROR", and "NONE". Defaults to "WARNING".

Outputs

  • results - An object with the results of the run.

Debugging

To view skipped links, failure details, and more debugging information enable step debug logging.

License

MIT

linkinator-action's People

Contributors

justinbeckwith avatar renovate[bot] avatar beckwithrobot-zz avatar freshyill avatar beckwithrobot avatar github-actions[bot] avatar bcoe avatar coliff avatar davidanson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.