--- name: PR Title Validation on: pull_request: branches: [main] types: [opened, synchronize, reopened, edited] merge_group: types: [checks_requested] branches: [main] permissions: contents: read jobs: validate-pr-title: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - name: PR Conventional Commit Validation if: github.event_name == 'pull_request' uses: ytanikin/pr-conventional-commits@1.5.2 with: task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert","build","style"]' add_label: 'false' - name: Failure case if: failure() && github.event_name == 'pull_request' run: | echo "Make sure the PR title/commit follows https://www.conventionalcommits.org/" exit 1