-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4bb279
commit 285a966
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[tool.commitizen] | ||
bump_message = "chore: Release $new_version" | ||
tag_format = "$version" | ||
version = "1.4.3" | ||
version_files = [ | ||
"README.md", | ||
"pyproject.toml:version", | ||
"src/REST/version.py:__version__" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
|
||
# RESTinstance (https://github.com/asyrjasalo/RESTinstance) | ||
# Robot Framework library for RESTful JSON APIs. | ||
# | ||
# Copyright(C) 2018- Anssi Syrjäsalo (http://a.syrjasalo.com) | ||
# Licensed under GNU Lesser General Public License v3 (LGPL-3.0). | ||
|
||
prerelease_type="$1" | ||
|
||
branch="$(git branch --show-current)" | ||
if [ "$branch" != "main" ] && [ "$branch" != "master" ]; then | ||
echo "Error: Releases must be created from trunk, run $0 in main/master." | ||
exit 1 | ||
fi | ||
|
||
if [ -n "$(git status -s)" ]; then | ||
echo "Error: Working tree has changes: Stash, commit or reset first" | ||
exit 1 | ||
fi | ||
|
||
if [ -n "$prerelease_type" ]; then | ||
echo "Creating pre-release ($prerelease_type)" | ||
pipx run --spec commitizen cz bump --prerelease "$prerelease_type" | ||
else | ||
pipx run --spec commitizen cz bump | ||
fi |