Skip to content

Convert to GitHub actions #6

Convert to GitHub actions

Convert to GitHub actions #6

Workflow file for this run

name: PR Lint
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
jobs:
pr-lint:
name: ${{ outputs.verdict || 'Checking the PR title...' }}

Check failure on line 9 in .github/workflows/pr-lint.yml

View workflow run for this annotation

GitHub Actions / PR Lint

Invalid workflow file

The workflow is not valid. .github/workflows/pr-lint.yml (Line: 9, Col: 11): Unrecognized named-value: 'outputs'. Located at position 1 within expression: outputs.verdict || 'Checking the PR title...'
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")