Skip to content

Commit

Permalink
bugfix: fix changelog generation crash (ss220-space#4198)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimach authored Jan 10, 2024
1 parent 729d6a9 commit 2f0b4c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/changelog/gen_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@

def add_commits(commit):
commit_mount = date.fromtimestamp(commit.committed_date).month
mount_fixed = commit_mount > 10 and today.month < 3 if today.month + 12 else today.month
mount_fixed = today.month
if commit_mount > 10 and today.month < 3:
mount_fixed += 12
if commit_mount >= mount_fixed - 1:
if not commit.message.startswith("Automatic changelog generation"):
commitsSet.add(commit)
Expand Down

0 comments on commit 2f0b4c8

Please sign in to comment.