Files
main/.gitea/workflows/commits.yml
T
ksv741 95e4361599
Conventional commits / commits (pull_request) Successful in 10s
chore: simplify root tooling and repository boundaries
2026-09-15 20:45:36 +03:00

27 lines
856 B
YAML

name: Conventional commits
on:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
commits:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: https://github.com/actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm ci --ignore-scripts
- name: Check PR title and commits
env:
PR_TITLE: ${{ github.event.pull_request.title }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: |
printf '%s\n' "$PR_TITLE" | npm exec --no -- commitlint --strict
npm exec --no -- commitlint --strict --from "$BASE_SHA" --to "$HEAD_SHA"