This action verifies content in a PR body and title before allowing merging. This can be useful if you expect a link to an external site, or certain explicit content.
Required A Github OAuth2 access token.
Optional The Regular Expression string to match against the PR body.
Optional The Regular Expression string to match against the PR title.
Required The message to emit on success.
Required The message to emit on failure.
None.
- name: Foo Check
uses: Hummingbird-RegTech/check-pr-body-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
body_pattern: '(foo|FOO)+'
title_pattern: '(foo|FOO)+'
failure_message: 'No FOO!'
success_message: 'Bar!'