mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-23 03:20:19 +01:00
65cb76028f
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
31 lines
767 B
YAML
31 lines
767 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@v4
|
|
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
|