This action checks PR title includes a given regex. Typically this will be set in main.yaml to match a JIRA ticket
Required The regex that must be matched as part of the PR title`.
The time we greeted you.
on:
pull_request:
types:
# Check title when opened.
- opened
# Check title when new commits are pushed.
- synchronize
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: Latermedia/[email protected]
with:
# Match pull request titles with JIRA Key format.
pattern: '((?<!([A-Za-z]{1,10})-?)[A-Z]+-\d+)'