Skip to content

commit-check/commit-check-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Commit-Check GitHub Action

GitHub release (latest SemVer) GitHub marketplace

A Github Action for checking commit message formatting, branch naming, referencing Jira tickets, and more.

Usage

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

Optional Inputs

message

  • Description: check commit message formatting convention
  • Default: 'true'

branch

  • Description: check git branch naming convention
  • Default: 'true'

author-name

  • Description: check committer author name
  • Default: 'true'

author-email

  • Description: check committer author email
  • Default: 'true'

dry-run

  • 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.

Add Commit Check Action badge in README

You can show Commit Check Action status with a badge in your repository README

Example

[![commit-check](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml/badge.svg)](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)

commit-check

Versioning

Versioning follows Semantic Versioning.

Have question or feedback?

To provide feedback (requesting a feature or reporting a bug) please post to issues.

License

MIT License

Sponsor this project

 

Contributors 4

  •  
  •  
  •  
  •  

Languages