Skip to content

chore(release): promote test to main #120

chore(release): promote test to main

chore(release): promote test to main #120

Workflow file for this run

name: Commitlint
# Validates that every PR title is a valid Conventional Commit. Because
# maintainers merge with a merge commit and the PR title becomes that commit's
# message, this keeps `main`/`test` history clean and release tooling happy.
on:
pull_request:
types: [opened, edited, synchronize, reopened]
permissions:
contents: read
pull-requests: read
jobs:
pr-title:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install commitlint
run: |
npm install --no-save \
@commitlint/cli@^19 \
@commitlint/config-conventional@^19
- name: Lint PR title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo "$PR_TITLE" | npx --no-install commitlint --config .commitlintrc.yaml