Skip to content

cyeragit/conventional-commit-checker-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conventional Commit Checker GitHub Action

This action is a conventional commit validator

  • validates PR title with conventional commit title
  • validates PR description (first comment ) with conventional commit body and footer
  • The regex can be overridden with github action inputs

Inputs

pr-title-regex

Optional Regex to match PR title. Default "^(.+)(?:(([^)s]+)))?: (.+)".

pr-body-regex

Optional Regex to match PR body. Default "(.*\n)+(.*)".

Example usage

name: CI

on:
  pull_request:
    branches: [master]
    types: [opened, edited, synchronize]

jobs:
  check-for-cc:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: check-for-cc
        id: check-for-cc
        uses: agenthunt/[email protected]

NOTE

Unfortunately, it is not possible to customize the GitHub Squash and Merge description message. To really benefit from this action, please copy the PR body into the GitHub Squash and Merge description textarea.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%