Skip to content

Releases: gaurav-nelson/github-action-vale-lint

0.1.0

09 Oct 13:07
5437f92
Compare
Choose a tag to compare
  • You can now lint for all files instead of all modified files.
  • You can now select a specify directory to only lint files inside that directory.

Release version 0.0.3

26 Aug 00:09
Compare
Choose a tag to compare
Release version 0.0.3 Pre-release
Pre-release

Github action: Lint with Vale ✅❎

Automatically lint all modified text files in your GitHub pull requests. This GitHub action uses Vale to lint prose. Optional: Add errors as comments on PR.

Lint with Vale

The github-action-vale-lint checks all modified text (including markup) files and reports failure on error.

Vale error list

Prerequisite

You must have Vale configuration file .vale.ini in your repository.

How to use

  1. Create a new file in your repository .github/workflows/action.yml.

    touch .github/workflows/action.yml
  2. Copy-paste the folloing workflow in your action.yml file:

    name: Lint PRs with Vale
    
    on: pull_request
    
    jobs:
      vale-lint-PR:
        runs-on: ubuntu-latest
        steps:
        - uses: actions/checkout@master
          with:
            fetch-depth: 1
        - uses: gaurav-nelson/github-action-vale-lint@v0.0.2-alpha
          env:
            GH_COMMENT_TOKEN: ${{ secrets.GH_COMMENT_TOKEN }}

Add Vale errors as comments on PR

If you want to show errors as comments on the pull request, in your repository:

  1. Go to Settings > Secrets, and slect Add a new secret.
  2. Enter GH_COMMENT_TOKEN for Name, and enter your secret token as
    Value.
  3. Select Add secret.

Release version 0.0.2

22 Aug 02:39
9b9cd51
Compare
Choose a tag to compare
Release version 0.0.2 Pre-release
Pre-release
  1. Migrated to new YML format for GitHub Actions
  2. Added option to comment Vale errors on PRs

Release version 0.0.1-alpha

28 Mar 12:01
Compare
Choose a tag to compare
Pre-release

Github action: Lint with Vale ✅❎

Automatically lint all modified text files in your GitHub pull requests. This GitHub action uses Vale to lint prose.

Lint with Vale

The github-action-vale-lint checks all modified text (including markup) files and reports failure on error. Current version supports:

  • Markdown *.md
  • AsciiDoc *.adoc
  • ReStructuredText *.rst

Vale error list

Prerequisite

You must have Vale configuration file .vale.ini in your repository.

Workflow action

Lint with Vale on PR

workflow "Lint with vale on PR" {
  on = "pull_request"
  resolves = ["vale-lint-PR"]
}

action "vale-lint-PR" {
  uses = "./"
}

Upcoming

  • Add all errors as a GitHub comment on PR.
  • Vale version selector