Skip to content

PR Title Verify

Actions
Check PR title against a regex
1.3.2
Latest
Star (2)

PR Title Verify

GitHub release (latest by date) GitHub Workflow Status

GitHub action to check if a pull request title matches a regex pattern.

Configuration

Please refer to action definition and the following example workflow.

More information about pattern and flags can be found in the JavaScript reference.

flags is optional and defaults to gm. pattern is optional and defaults to conventional commit regex pattern.

Sample Workflow

name: 'PR Title Check'
on:
  pull_request:
    types:
      - opened
      - edited
      - synchronize
      - labeled
      - unlabeled

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: PR Title Verify
        uses: satvik-s/pr-title-check
        with:
          pattern: '(fix|feat|chore|docs|style|refactor|perf|test): (?:\w+\b\W*){3,8}$'

License

This project is released under the terms of the MIT License

PR Title Verify 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 PR title against a regex
1.3.2
Latest

PR Title Verify 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.