Skip to content

Commit

Permalink
Confirm changes before tbump commit (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored and Pierre-Sassoulas committed Nov 19, 2022
1 parent 8226a8e commit 8397711
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tbump.toml
Expand Up @@ -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]]
Expand Down

0 comments on commit 8397711

Please sign in to comment.