The Style Guide Checker GitHub Action is designed to automatically review your PRs to ensure they adhere to specified style guidelines. It currently uses OpenAI's GPT-4 Preview model, and therefore requires a valid OpenAI API Key.
This can be used to both check code PRs or Docs PRs against a (relevant and appropriate) style guide.
- Requires setting a secret named
OPENAI_API_KEYin the Org or Repo it will be run in.
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
style-guide-checker-test:
runs-on: ubuntu-latest
name: A test job to run Style Guide Checker
steps:
- name: Run Style Guide Checker on changed files
uses: grizzlygeeks/style-guide-checker
id: style-guide-checker
with:
openai-token: ${{ secrets.OPENAI_API_KEY }}
all_files: true
ignore_path: '**/node_modules/**'
file_extensions: |
**/*.{md,MD,html,HTML}This project is distributed under the MIT License.
For support, questions, or feedback, please open an issue!