summaryrefslogtreecommitdiff
path: root/tbump.toml
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2022-10-23 20:43:32 +0200
committerGitHub <noreply@github.com>2022-10-23 20:43:32 +0200
commitdaf3a9ec8c07781626f895b7c3af7883d909d0e0 (patch)
tree36d5305a77ab724792c1535eb27ae0ff51dc5725 /tbump.toml
parent3329d231ce2e30b1838565659c28e6274efacd17 (diff)
downloadastroid-git-daf3a9ec8c07781626f895b7c3af7883d909d0e0.tar.gz
Confirm changes before tbump commit (#1846)
Diffstat (limited to 'tbump.toml')
-rw-r--r--tbump.toml4
1 files changed, 4 insertions, 0 deletions
diff --git a/tbump.toml b/tbump.toml
index 5a78d678..eb36204f 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]]