Merge SSL env vars into existing env block instead of creating a duplicate (YAML doesn't allow duplicate top-level keys). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Commit Lint
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main, "feature/**"]
|
|
|
|
env:
|
|
GIT_SSL_NO_VERIFY: "true"
|
|
NODE_TLS_REJECT_UNAUTHORIZED: "0"
|
|
|
|
jobs:
|
|
commitlint:
|
|
name: Validate commit messages
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
|
|
with:
|
|
node-version: "20"
|
|
cache: "npm"
|
|
cache-dependency-path: package-lock.json
|
|
|
|
- name: Install commitlint
|
|
run: npm ci --ignore-scripts
|
|
|
|
- name: Validate PR commit messages
|
|
run: |
|
|
# Validate all commits in the PR
|
|
npx commitlint \
|
|
--from=${{ github.event.pull_request.base.sha }} \
|
|
--to=${{ github.event.pull_request.head.sha }} \
|
|
--verbose
|