diff --git a/tbump.toml b/tbump.toml index 5a78d6786..eb36204f5 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]]