Skip to content

A GitHub action to check that Pull Request comments contain (or not) some text.

License

Notifications You must be signed in to change notification settings

grams/check-pr-comments-action

 
 

Repository files navigation

Check Pull Request comments github action

This action helps to enforce some conventions in pull requests comments. It can check that comments do include some piece of text or that it does not include another piece of text.

This can be useful in conjunction with PR comment template , using this action to make sure that PR author did not forget to replace placeholder text with real info.

Inputs

comments-must-contain

Check that the given text appears in pull request body.

comments-must-not-contain

Check that the given text does not appear at all in pull request body.

Outputs

None.

Example usage

- name: Check Pull Request comments
  uses: actions/CheckPRComments@v0
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}  # Required to to act on pull request through GitHub API 
  with:
    comments-must-contain: '# Description'
    comments-must-not-contain: '- [ ]'

About

A GitHub action to check that Pull Request comments contain (or not) some text.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 95.0%
  • Dockerfile 5.0%