Skip to content
align-left

GitHub Action

Review Markdown for Discriminatory Language with ChatGPT

v0.0.2 Latest version

Review Markdown for Discriminatory Language with ChatGPT

align-left

Review Markdown for Discriminatory Language with ChatGPT

Reviews Markdown files in pull requests for potentially discriminatory language and provides suggestions for improvements

Installation

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

              

- name: Review Markdown for Discriminatory Language with ChatGPT

uses: hummusonrails/[email protected]

Learn more about this action in hummusonrails/github-action-gpt-language-check

Choose a version

GitHub Action: GPT Language Check

This GitHub action reviews markdown files in your pull requests for potentially discriminatory language, including but not limited to ableism, ageism, racism, antisemitism, Islamophobia, and similar issues. It uses the OpenAI GPT-3.5 language model to detect discriminatory language and provides suggestions for alternative language.

Usage

To use this action in your repository, follow these steps:

  1. Set up the OPENAI_API_KEY secret in your GitHub repository. You can find more information about setting up secrets in the GitHub documentation.

  2. Create a new file named review_markdown.yml in the .github/workflows directory of your repository.

  3. Copy the contents of the sample review_markdown.yml file into the newly created file.

  4. Commit and push your changes to the repository.

When a pull request is created or updated with changes to markdown files, this action will review them for potentially discriminatory language and add a comment to the pull request with suggestions for alternative language if any issues are found.

Contributing

If you would like to contribute to this project, please read the contributing guidelines and code of conduct.

License

This project is licensed under the MIT License.