.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:
Maciej Pijanowski
2025-06-12 18:07:59 +02:00
parent 0c18c62426
commit e71f797be8
+9
View File
@@ -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]