Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 587 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 587 Bytes

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+.*'