mirror of
https://github.com/Dasharo/coreboot.git
synced 2026-06-13 10:16:48 -07:00
.pre-commit-config.yaml: add upstream-status check
Move this check to pre-push rather then pre-commit, to avoid the possibility of losing longer commit message if pre-commit fails. pre-push hook must be installed additionally to make it work (by default, only the pre-commit hook is installed) pre-commit install -t pre-push Change-Id: Ie205b55a5dcab759fd1b194378d7f73bc9992b31 Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com> Upstream-Status: Inappropriate [Dasharo downstream]
This commit is contained in:
@@ -44,3 +44,12 @@ repos:
|
||||
entry: util/lint/lint lint-stable
|
||||
language: script
|
||||
types: [file]
|
||||
|
||||
- repo: https://github.com/3mdeb/hooks
|
||||
rev: v0.1.6
|
||||
# Can be triggered manually with command:
|
||||
# pre-commit run --hook-stage pre-push check-upstream-status
|
||||
hooks:
|
||||
- id: check-upstream-status
|
||||
args: [--base, origin/dasharo]
|
||||
stages: [pre-push]
|
||||
|
||||
Reference in New Issue
Block a user