name: PR Title
on:
pull_request:
types:
# Allowed conventional commit types:
# feat – new feature
# fix – bug fix
# docs – documentation only
# style – formatting, whitespace (no logic change)
# refactor – code restructure (not a feat or fix)
# perf – performance improvement
# test – adding or fixing tests
# build – build system or dependency changes
# ci – CI/CD changes
# chore – maintenance tasks
# revert – reverting a previous commit
#
# Format: type(optional-scope): description
# Breaking change: append ! before the colon, e.g. feat!: remove old config format
jobs:
# Enforce conventional commit format so the title can be used in changelogs and release notes.
validate:
name: Validate
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: amannn/action-semantic-pull-request@e32d7e603df1aa1ba07e981f2a23455dee596825 # v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}