Lint PR title #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Lint PR title" | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
jobs: | |
lint_pr_title: | |
uses: ./.github/workflows/lint-pr.yml | |
secrets: inherit | |
with: | |
subjectPattern: ([-a-zA-Z0-9]{2,5}[/-]{1}[0-9]+.*) | |
subjectPatternError: 'The subject "{subject}" found in the pull request title "{title}" did not match the configured pattern. Please start with the jira issue which originated your work - like feat(scope): PLT-000 additional info' | |
requireScope: false | |
allowed_types: | | |
fix | |
feat | |
breaking | |
minor | |
major | |
patch |