Want to provide some standards on your project? The pull request validator is here to help!
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+.*'