Skip to content

Convert to GitHub actions #4

Convert to GitHub actions

Convert to GitHub actions #4

Workflow file for this run

name: PR Lint
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
jobs:
pr-lint:
name: PR Lint
runs-on: ubuntu-latest
steps:
- uses: maor-rozenfeld/prlint-reloaded@actions
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@actions
with:
title-regex: "^\\S+\\s+\\S+\\s+\\S+"
error-message: Your title must have at least three words
- uses: maor-rozenfeld/prlint-reloaded@actions
with:
title-regex: "^(?!\\S+ing\\s)(?!\\S+ed\\s)"
error-message: Use imperative mood (i.e write "Fix", not "Fixed" or "Fixing")