An open API service indexing awesome lists of open source software.

https://github.com/l-lin/spectral-comment-action

Comments pull requests with Spectral linter outputs
https://github.com/l-lin/spectral-comment-action

Last synced: 23 days ago
JSON representation

Comments pull requests with Spectral linter outputs

Awesome Lists containing this project

README

        


spectral-comment-action status

# Spectral comment action

> Comments pull requests with [Spectral linter](https://github.com/stoplightio/spectral) linter
> outputs using Github action

![spectral-comment-action](./spectral-comment-action-sample.png)

Check [PR showcase](https://github.com/l-lin/spectral-comment-action/pull/3#issuecomment-600786379).

## Usage

Add or edit an existing workflow:

```yaml
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/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file-glob: sample/*.yml
```

## License

[MIT](./LICENSE)