Skip to content

fix(cockpit): add alternative paths for custom verbs to comply with API guidelines #4544

fix(cockpit): add alternative paths for custom verbs to comply with API guidelines

fix(cockpit): add alternative paths for custom verbs to comply with API guidelines #4544

name: Check Pull Request
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
merge_group:
jobs:
check-title:
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 20
check-latest: true
cache: 'pnpm'
- run: pnpm install
- name: Check title
run: |
title=$(cat <<- "EOF"
${{ github.event.pull_request.title }}
EOF
)
if [ "$title" == "feat: update generated APIs" ]; then
echo "Invalid title."
exit 1
else
echo "$title" | pnpm commitlint
fi