Skip to content

RidgeRun/pre-commit-rip0005-gitflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RIP 5 Git Hooks

Single hook ID:

  • rip0005-gitflow

Configure

repos:
  - repo: <hook-repo-url>
    rev: <tag-or-commit>
    hooks:
      - id: rip0005-gitflow

Install

pre-commit install --install-hooks --hook-type commit-msg --hook-type pre-push

What It Checks

  • commit-msg: blocks direct commits to main, master, and develop, and rejects stale merge commits.
  • pre-push: checks branch rebase state, blocks non-merge commits on protected branches, and blocks overlapping stale merges on protected branches.

Defaults

remote: origin
protected branches: main master develop
arguments: none

About

Pre-commit hook for RIP 5: GitFlow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors