Skip to content

chore(terra-draw): ensure the actions/checkout action is used in the commit-lint-prs.yml action #7

chore(terra-draw): ensure the actions/checkout action is used in the commit-lint-prs.yml action

chore(terra-draw): ensure the actions/checkout action is used in the commit-lint-prs.yml action #7

name: PR Conventional Commit Validation
permissions:
pull-requests: read
on:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
validate-pr-title:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node
uses: actions/setup-node@v4
with:
node-version: "22.x"
- name: PR Conventional Commit Validation Against Commit Lint Config
env:
TITLE: ${{ github.event.pull_request.title }}
run: echo "$TITLE" | npx commitlint