Skip to content

CheckPRComments

Actions
Check that PR comment contains (or not) a given text
v0.0.3
Latest
Star (2)

Tags

 (1)

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: '- [ ]'

CheckPRComments is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Check that PR comment contains (or not) a given text
v0.0.3
Latest

Tags

 (1)

CheckPRComments is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.