Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Managing manual release notes is hard. Therefore, everyone tends to generate rel
- Create your own release note template in `.releasezri/template.md` (Supports [template variables](https://codezri.org/docs/releasezri/integrate#supported-template-variables))
- Copy-paste the `scripts/rz.py` script
- Update your DevOps workflow to generate release notes via `scripts/rz.py create <version>` command
- Optionally, use `scripts/rz.py check` in your workflow to detect if there are any unreleased changes before triggering a release (prints `ST_HAS_CHANGES` or `ST_NO_CHANGES`)

This project itself is maintained with ReleaseZri. Read documentation here: https://codezri.org/docs/releasezri/intro

Expand Down
8 changes: 7 additions & 1 deletion scripts/rz.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,11 @@ def print_art():
elif command == 'cleanup':
cleanup()

elif command == 'check':
if parse_release_note().strip() == '':
print('ST_NO_CHANGES')
else:
print('ST_HAS_CHANGES')

else:
print('ERROR: Invalid command!')
print('ERROR: Invalid command!')