diff --git a/.bashrc b/.bashrc index 082ea2c80c0cf99dc58c9ca04a8aae218b85037c..18df40991c685fa1fcdcf9c68b25a2ab87130154 100644 --- a/.bashrc +++ b/.bashrc @@ -162,5 +162,11 @@ ddg () { lynx "https://duckduckgo.com/lite/?q=$(echo "$@" | urlencode)" } +bump () { + semver-bump "$1-release" && \ + git commit VERSION -m"- Bumped $1 version." && \ + git tag-version +} + # shellcheck disable=SC1090 . "$HOME/Documents/Shore/bundle_certs/bundle_certs" diff --git a/.gitconfig b/.gitconfig index c142db6c619027b898f51d7b0d9f0c149ab2ef44..5c88fd6b665955a9ebed29d23a1ce51c58533335 100644 --- a/.gitconfig +++ b/.gitconfig @@ -19,7 +19,7 @@ serve-http = !git update-server-info && cd .git && python -m SimpleHTTPServer staash = stash --all stat = status --short --branch - tag-version = !git tag -af "v$(cat VERSION)" + tag-version = !git tag --annotate --force --message "v$(cat VERSION)" "v$(cat VERSION)" tracking = rev-parse --abbrev-ref --symbolic-full-name @{upstream} trigger = !git commit --allow-empty --no-edit --amend && git push --force-with-lease update-requirements = !git stash save -a -u -q && ( git ls-files '*requirements*.txt' | xargs -n1 pur -r ) && ( git commit -a -m '- Updated requirements.' || echo 'No requirements updated.' ) && git stash pop