name: PR Checks on: pull_request: types: [opened, edited, synchronize, reopened] concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true permissions: {} jobs: commitlint: name: Verify PR title / description conforms to semantic-release runs-on: ubuntu-latest steps: - uses: actions/setup-node@v6 with: node-version: "24" - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 with: version: 11.1.1 # These rules are disabled because Github will always ensure there # is a blank line between the title and the body and Github will # word wrap the description field to ensure a reasonable max line # length. - run: > echo 'module.exports = { "rules": { "body-max-line-length": [0, "always", Infinity], "footer-max-line-length": [0, "always", Infinity], "body-leading-blank": [0, "always"] } }' > .commitlintrc.js - name: Check PR title and description shell: bash run: | jq -er '.pull_request | select(.title != null) | .title + "\n\n" + (.body // "")' "$GITHUB_EVENT_PATH" | \ pnpm dlx \ --package @commitlint/cli@21.2.2 \ --package @commitlint/config-conventional@21.2.2 \ commitlint --extends @commitlint/config-conventional --verbose