Skip to content

Commit

Permalink
autorelease: log beta releases, without manual summary
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Sep 24, 2022
1 parent f22d6f7 commit 69b3e9b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions setupsrc/pl_setup/autorelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,12 @@ def log_changes(summary, prev_ns, curr_ns):
content = fh.read()
pos = content.index("\n", content.index("# Changelog")) + 1
part_a = content[:pos].strip() + "\n"
part_b = content[pos:].strip()
content = part_a + "\n\n" + pdfium_msg + "\n" + summary + "\n\n" + part_b + "\n"
part_b = content[pos:].strip() + "\n"
content = part_a + "\n\n" + pdfium_msg + "\n"
if curr_ns["V_BETA"] is None:
content += summary
content += "\n\n" + part_b

with open(Changelog, "w") as fh:
fh.write(content)

Expand Down Expand Up @@ -212,9 +216,7 @@ def main():
curr_ns = get_version_ns()

summary = get_summary(curr_ns)
if curr_ns["V_BETA"] is None:
# update changelog, except if doing a beta release
log_changes(summary, prev_ns, curr_ns)
log_changes(summary, prev_ns, curr_ns)
if args.checkin:
register_changes(curr_ns)
make_releasenotes(summary, prev_ns, curr_ns, c_updates)
Expand Down

0 comments on commit 69b3e9b

Please sign in to comment.