From 4a2951e22f7398f28850f459c7542a7a2d1e0c9c Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Wed, 3 Mar 2021 13:51:22 +0000 Subject: [PATCH] Fixed changelog.py for when HEAD doesn't have tag. --- CHANGELOG.md | 2 ++ scripts/changelog.py | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8842ca4..618d812 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/scripts/changelog.py b/scripts/changelog.py index 0641ef0..3e1c778 100644 --- a/scripts/changelog.py +++ b/scripts/changelog.py @@ -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