Skip to content

This Action checks issue and pull-request descriptions against an regular expression. This can be used to check if the description met your Github template files.

License

Notifications You must be signed in to change notification settings

3nids/body-regex-validator-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Issue / Pull request body regex validator

This Action checks issue and pull-request descriptions against an regular expression. This can be used to check if the description met your Github template files.

Usage

This Action subscribes to Pull request events and Issues events which will fire whenever Issues or Pull requests get created.

name: Example workflow
on: [issues, pull_request]
jobs:
  example:
    name: Example job
    runs-on: ubuntu-latest
    steps:
    - name: Run actions/checkout 
      uses: actions/checkout@v1
      with:
        fetch-depth: 1
    - name: Run fabiankoestring/body-regex-validator-action
      uses: fabiankoestring/body-regex-validator-action@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        PULL_REQUEST_PATTERN: '^(.*Description.*Changes.*Tests.*)$'
        PULL_REQUEST_COMMENT: 'This is my pr comment template.'
        ISSUE_PATTERN: '^(.*Description.*Behavior.*)$'
        ISSUE_COMMENT: 'This is my issue comment template.'

License

The Dockerfile and associated scripts and documentation in this project are released under the GNU General Public License v3.0.

About

This Action checks issue and pull-request descriptions against an regular expression. This can be used to check if the description met your Github template files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 83.9%
  • Dockerfile 16.1%