mirror of
https://github.com/DJSundog/NopSCADlib.git
synced 2024-11-23 07:13:51 -05:00
Fixed changelog.py for when HEAD doesn't have tag.
This commit is contained in:
parent
a93a8f99fb
commit
4a2951e22f
@ -3,6 +3,8 @@
|
||||
This changelog is generated by `changelog.py` using manually added semantic version tags to classify commits as breaking changes, additions or fixes.
|
||||
|
||||
|
||||
* 2021-03-03 [a93a8f9](https://github.com/nophead/NopSCADlib/commit/a93a8f99fb8272186c99207161bc50c2cc3e057f "show commit") [C.P.](# "Chris Palmer") Added `CHANGELOG.md` for #154
|
||||
|
||||
### [v13.4.0](https://github.com/nophead/NopSCADlib/releases/tag/v13.4.0 "show release") Additions [...](https://github.com/nophead/NopSCADlib/compare/v13.3.1...v13.4.0 "diff with v13.3.1")
|
||||
* 2021-02-22 [c69100b](https://github.com/nophead/NopSCADlib/commit/c69100bd71254933c21fdf7bed21676b612564a6 "show commit") [C.P.](# "Chris Palmer") Added spring steel and silicone sheets.
|
||||
|
||||
|
@ -131,8 +131,7 @@ if __name__ == '__main__':
|
||||
# Convert version tag to tuple
|
||||
if commit.tag:
|
||||
match = re.match(r'.*tag: v([0-9]+)\.([0-9]+)\.([0-9]+).*', commit.tag)
|
||||
assert(match)
|
||||
commit.tag = (int(match.group(1)), int(match.group(2)), int(match.group(3)))
|
||||
commit.tag = (int(match.group(1)), int(match.group(2)), int(match.group(3))) if match else ''
|
||||
commits.append(commit)
|
||||
|
||||
# Format the results from the Commit objects
|
||||
|
Loading…
Reference in New Issue
Block a user