Skip to content

feat(linter/plugins): non-fs files linter report ranges #13

feat(linter/plugins): non-fs files linter report ranges

feat(linter/plugins): non-fs files linter report ranges #13

Workflow file for this run

name: Check PR
permissions: {}
on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
branches-ignore:
- "**/graphite-base/**"
jobs:
pr:
name: Check PR Title
runs-on: ubuntu-slim
steps:
- name: Validate PR title
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
PATTERN='^(build|chore|ci|docs|feat|fix|perf|refactor|release|revert|style|test)\([a-z0-9/_-]+(, ?[a-z0-9/_-]+)*\)!?: .+'
if ! printf '%s' "$TITLE" | grep -Eq "$PATTERN"; then
{
echo "::error title=Invalid PR title::PR title must follow Conventional Commits with a required scope."
echo ""
echo "Got: $TITLE"
echo "Expected: <type>(<scope>): <subject> e.g. fix(parser): handle trailing comma"
echo ""
echo "Allowed types: build, chore, ci, docs, feat, fix, perf, refactor, release, revert, style, test"
echo "Scope chars: a-z 0-9 / _ - with comma-separated scopes allowed"
echo "Breaking: append ! before the colon (e.g. feat(ast)!: ...)"
} >&2
exit 1
fi