Skip to content

Commit 3a490a6

Browse files
committed
chore: improve changelog generation
1 parent 9de1222 commit 3a490a6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/changelog-gen.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ def render_changelog_header():
7676
print("<a name=\"" + curr_tag + "\"></a>")
7777
print("## [" + curr_tag + "](https://github.com/" + project_slug + "/compare/" + prev_tag + "..." + curr_tag +")")
7878

79+
def render_link_to_detailed_changes():
80+
since = get_commit_for_second_last_tag()
81+
until = get_commit_for_last_tag()
82+
83+
prev_tag = tag_at_commit(since)
84+
curr_tag = tag_at_commit(until)
85+
86+
print("\n\n:mag: [View detailed changes since the previous release]" + "(https://github.com/" + project_slug + "/compare/" + prev_tag + "..." + curr_tag +")")
87+
7988
def render_changelog(log):
8089
changes_by_type = dict()
8190

@@ -99,8 +108,9 @@ def main(args):
99108
else:
100109
log = get_commits()
101110

102-
render_changelog_header()
111+
# render_changelog_header()
103112
render_changelog(log)
113+
render_link_to_detailed_changes()
104114

105115

106116
if __name__ == "__main__":

0 commit comments

Comments
 (0)