A Github Action for checking commit message formatting, branch naming, referencing Jira tickets, and more.
Create a new GitHub Actions workflow in your project, e.g. at .github/workflows/commit-check.yml
name: Commit Check
on: pull_request
jobs:
commit-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: commit-check/commit-check-action@v1
with:
message: true
branch: true
author-name: true
author-email: true
dry-run: true
- Description: check commit message formatting convention
- By default the rule follows conventionalcommits
- Default: 'true'
- Description: check git branch naming convention
- By default follow bitbucket branching model
- Default: 'true'
- Description: check committer author name
- Default: 'true'
- Description: check committer author email
- Default: 'true'
- Description: run checks without failing
- Default: 'false'
Note: to change the default rules of above inputs, just add your own .commit-check.yml
config file.
You can show Commit Check Action status with a badge in your repository README
Example
[](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)
Versioning follows Semantic Versioning.
To provide feedback (requesting a feature or reporting a bug) please post to issues.