Skip to content

This GitHub Action checks spelling and grammar in markdown files, leveraging OpenAI GPT model, and posts comments directly on pull requests highlighting the issues found.

License

Notifications You must be signed in to change notification settings

infraspecdev/spellcheck-action

Repository files navigation

Spell Check and Grammar Check GitHub Action

This GitHub Action checks spelling and grammar in markdown files, leveraging OpenAI GPT model, and posts comments directly on pull requests highlighting the issues found.

Usage

To use this action in your workflow, add the following step to your .github/workflows/spell_check.yml file:

jobs:
  spellcheck:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Run Spell Check
        uses: infraspecdev/spellcheck-action@<version>
        with:
          openai_api_key: ${{ secrets.OPENAI_API_KEY }}
          github_token: ${{ secrets.GITHUB_TOKEN }}
          pr_number: ${{ github.event.number }}
          files: 'blogs/file1.md, blogs/file2.md'
          openai_model: '<model-name>' #Optional
          model_max_token: <max-token-number> #Optional

About

This GitHub Action checks spelling and grammar in markdown files, leveraging OpenAI GPT model, and posts comments directly on pull requests highlighting the issues found.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published