Checks the commits made by developers in a repository to ensure they adhere to conventional commits.
name: Check current commit
on: [push]
jobs:
dev:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: bugbundle/commits@v1.1.0
Note You can check previous commits by adding the
fetch-depth
parameter while usingactions/checkout
.
git-range
, default 'HEAD': Range of commits.
patch
, Count of patch commitsminor
, Count of minor commitsmajor
, Count of major commits
name: Check current commit
on: [pull_request]
jobs:
dev:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: ${{ github.event.pull_request.commits }}
ref: ${{ github.event.pull_request.head.sha }}
- uses: bugbundle/commits@v1.1.0
id: commits
- run: echo ${{ steps.commits.outputs.major }}.${{ steps.commits.outputs.minor }}.${{ steps.commits.outputs.patch }}