Pass PR title to commitlint via environment variable (#9414)

This commit is contained in:
Adnan Khan
2025-10-09 12:31:35 -04:00
committed by GitHub
parent 40d72a3881
commit ba8d01a68b

View File

@@ -7,6 +7,8 @@ name: commit lint & label
jobs:
lint:
runs-on: ubuntu-latest
env:
PR_TITLE: ${{ github.event.pull_request.title }}
permissions:
pull-requests: read
contents: read
@@ -23,7 +25,7 @@ jobs:
run: npm ci
- name: Check PR title
id: check-pr-title
run: echo "${{ github.event.pull_request.title }}" | npx commitlint --verbose
run: echo "$PR_TITLE" | npx commitlint --verbose
label:
runs-on: ubuntu-latest