Skip to content

GitHub action that ensures commits in a PR are valid for merging

Notifications You must be signed in to change notification settings

ExaWorks/pr-validator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PR commit message validator

Simple GitHub action to prevent accidental merge of PRs with invalid commits. Currently, invalid commits include

  • Commits with fixup or squash in the subject
  • Commits with subjects or body that are too long

To add to a project, add the following to a GitHub workflow .yml file:

on: pull_request
jobs:
  check-pr:
    name: validate commits
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        ref: ${{ github.event.pull_request.head.sha }}
        fetch-depth: 0
    - run: git fetch origin master
    - uses: exaworks/pr-validator@master

About

GitHub action that ensures commits in a PR are valid for merging

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 96.2%
  • Dockerfile 3.8%