Skip to content

pragmatic-tools/pr-title-validator

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Pull Request Title Validator

Want to provide some standards on your project? The pull request validator is here to help!

Example Usage

Here's an example of where we want our pull request titles to have the prefix "JIRA-(some_number)" at minimum. (e.g. JIRA-101 Fix Project Management)

name: `Pull Request Title Validator`
on:
  pull_request:
    types: [opened, reopened, synchronize, edited]

jobs:
  require-valid-pr-title:
    runs-on: ubuntu-latest
    steps:
      - uses: pragmatic-tools/[email protected]
        with:
          pattern: 'JIRA-\d+.*'