Files
ansible-role-aide/.github/workflows/pr-title-lint.yml
T
Rich MegginsonandRichard Megginson 783d08440d ci: bump gha checkout from v5 to v6
bump gha checkout from v5 to v6

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2025-12-01 15:48:17 -05:00

33 lines
771 B
YAML

---
name: PR Title Lint
on: # yamllint disable-line rule:truthy
pull_request:
types:
- opened
- synchronize
- reopened
- edited
merge_group:
branches:
- main
types:
- checks_requested
permissions:
contents: read
jobs:
commit-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install conventional-commit linter
run: npm install @commitlint/config-conventional @commitlint/cli
- name: Run commitlint on PR title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
# Echo from env variable to avoid bash errors with extra characters
run: echo "$PR_TITLE" | npx commitlint --verbose