larskristianhaga / pr-title-validator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/pr-title-validator@1.0.0
        with:
          pattern: 'JIRA-\d+.*'

About

License:MIT License


Languages

Language:TypeScript 87.3%Language:JavaScript 12.7%