From 8397711ad0b5fa6bd20f4150e6fea17e4d1d43e6 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sun, 23 Oct 2022 20:43:32 +0200 Subject: [PATCH] Confirm changes before tbump commit (#1846) --- tbump.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tbump.toml b/tbump.toml index 65cf8b8c2..b3ced3d04 100644 --- a/tbump.toml +++ b/tbump.toml @@ -40,6 +40,10 @@ cmd = "python3 script/create_contributor_list.py" name = "Apply pre-commit" cmd = "pre-commit run --all-files||echo 'Hack so this command does not fail'" +[[before_commit]] +name = "Confirm changes" +cmd = "read -p 'Continue (y)? ' -n 1 -r; echo; [[ ! $REPLY =~ ^[Yy]$ ]] && exit 1 || exit 0" + # Or run some commands after the git tag and the branch # have been pushed: # [[after_push]]