From e71f797be8ed95649eb8ed988b0b5e69bba15f28 Mon Sep 17 00:00:00 2001 From: Maciej Pijanowski Date: Thu, 12 Jun 2025 17:31:25 +0200 Subject: [PATCH] .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 Upstream-Status: Inappropriate [Dasharo downstream] --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f0464484cb..85866d7dc6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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]