rdohms / textlint-action

Github Action that uses textlinter to proofread documentation
MIT License
4 stars 0 forks source link
github-actions hacktoberfest textlint

DMS TextLint Action

GitHub Action that wraps TextLint to proofread documentation.

This action is based on the great work of Orthograph-err. This version adds support for defining extra ruleset packages dynamically so there is no need to fork the repository to add your own rules.

Usage

Your repository should have a .textlintrc file to configure your desired rules.

Add the following to your workflow:

      - uses: rdohms/textlint-action@v1
        with:
          # List required ruleset packages
          # Use a space separated syntax with full package names (used in yarn add)
          rulesets: 'textlint-rule-alex textlint-rule-common-misspellings'

          # File path with the content to review.
          # Default: {,!(node_modules)/**/}*.md
          path: './test/integration/bad.md'

          # Enables or disables reporting via annotations
          # Default: true
          annotate: 'false'

          # Override token used to annotate
          # Default: ${{ github.token }}
          token: ''

The action will add errors to the PR as annotations and each ruleset will have its own Check.