Skip to content

build(deps): bump python-semantic-release/python-semantic-release from 9.8.0 to 9.15.2 #177

build(deps): bump python-semantic-release/python-semantic-release from 9.8.0 to 9.15.2

build(deps): bump python-semantic-release/python-semantic-release from 9.8.0 to 9.15.2 #177

name: "Lint PR title"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
branches:
- 'main'
- 'develop'
jobs:
lint:
if: ${{ github.head_ref != 'develop' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm install @commitlint/cli @commitlint/config-conventional
- name: Validate PR title
run: |
PR_TITLE=$(jq -r '.pull_request.title' "$GITHUB_EVENT_PATH")
echo "$PR_TITLE" | npx commitlint --config commitlint.config.js