Suggesting a new name #25
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: PR Lint | |
on: | |
pull_request: | |
types: ['opened', 'edited', 'reopened', 'synchronize'] | |
jobs: | |
prlint-reloaded: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: maor-rozenfeld/prlint-reloaded@v1 | |
with: | |
title-regex: ^[A-Z][a-z]+?\s | |
error-message: Your title must start with a capital letter, and a real word, e.g. 'Add GO support' | |
- uses: maor-rozenfeld/prlint-reloaded@v1 | |
with: | |
title-regex: ^\S+\s+\S+\s+\S+ | |
error-message: Your title must have at least three words | |
- uses: maor-rozenfeld/prlint-reloaded@v1 | |
with: | |
title-regex: ^(?!\S+ing\s)(?!\S+ed\s) | |
error-message: Use imperative mood (i.e write "Fix", not "Fixed" or "Fixing") | |