Skip to content
check-square

GitHub Action

Spectral comment

0.1.0 Latest version

Spectral comment

check-square

Spectral comment

Comments pull requests with Spectral linter outputs

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Spectral comment

uses: l-lin/spectral-comment-action@0.1.0

Learn more about this action in l-lin/spectral-comment-action

Choose a version

spectral-comment-action status

Spectral comment action

Comments pull requests with Spectral linter linter outputs using Github action

spectral-comment-action

Check PR showcase.

Usage

Add or edit an existing workflow:

name: "test-action"
on:
  # only works on pull requests
  pull_request:

jobs:
  test:
    name: Lint OpenAPI
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: l-lin/spectral-comment-action@0.1.0
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
        file-glob: sample/*.yml

License

MIT