From de9a60c7938f26f07c31f73382d470501c76e7e1 Mon Sep 17 00:00:00 2001 From: Guillaume MOCQUET Date: Wed, 16 Jun 2021 13:10:24 +0200 Subject: [PATCH] docs(readme): update check-branch-linearity info --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c32c037..704623e 100644 --- a/README.md +++ b/README.md @@ -8,16 +8,17 @@ Some out-of-the-box hooks for [pre-commit](https://github.com/pre-commit/pre-com Add this to your `.pre-commit-config.yaml` - repo: https://github.com/Kpler/kp-pre-commit-hooks.git - rev: v0.0.3 # Use the ref you want to point at + rev: v0.0.7 # Use the ref you want to point at hooks: - id: check-branch-linearity - - id: check-commit-first-line-length - id: check-branch-name + - id: no-ephemeral-links + exclude: '\.md$' ### Hooks available #### `check-branch-linearity` -Simply check that your branch doesn't not contain any merge compare to master. +Simply check that your branch doesn't not contain any merge compare to `master` or `main` branch. It's a pre-push hook and will always run #### `check-branch-name`