Browse Source

fixed template for new changelog entry

master
Holger Frey 5 months ago
parent
commit
c373a3f81f
  1. 10
      work_helpers/sg_mbp_build.py

10
work_helpers/sg_mbp_build.py

@ -18,11 +18,11 @@ CRLF = "\r\n"
EXCEL_CHANGELOGS = { EXCEL_CHANGELOGS = {
"changes mbp {version} hyb.txt": "J1", "changes mbp {version} hyb.txt": "J1",
"changes mbp {version} qc.txt": "J1", "changes mbp {version} hqc.txt": "J1",
"changes mbp {version} dry-1.txt": "L1", "changes mbp {version} dry-1.txt": "L1",
"changes mbp {version} dry-2.txt": "L1", "changes mbp {version} dry-2.txt": "L1",
"changes mbp {version} reg.txt": "J1", "changes mbp {version} reg.txt": "J1",
"changes mbp {version} as.txt": "L1", "changes mbp {version} asqc.txt": "L1",
} }
EXCEL_CHANGELOG_HEADERS = [ EXCEL_CHANGELOG_HEADERS = [
@ -34,10 +34,10 @@ EXCEL_CHANGELOG_HEADERS = [
WORKBOOKS_MAP = { WORKBOOKS_MAP = {
"MBP Hyb.xlsx": "MBP {version} Hyb.xlsx", "MBP Hyb.xlsx": "MBP {version} Hyb.xlsx",
"MBP Reg.xlsx": "MBP {version} Reg.xlsx", "MBP Reg.xlsx": "MBP {version} Reg.xlsx",
"MBP QC.xlsx": "MBP {version} QC.xlsx", "MBP HQC.xlsx": "MBP {version} HQC.xlsx",
"MBP Dry-1.xlsx": "MBP {version} Dry-1.xlsx", "MBP Dry-1.xlsx": "MBP {version} Dry-1.xlsx",
"MBP Dry-2.xlsx": "MBP {version} Dry-2.xlsx", "MBP Dry-2.xlsx": "MBP {version} Dry-2.xlsx",
"MBP AS.xlsx": "MBP {version} AS.xlsx", "MBP ASQC.xlsx": "MBP {version} ASQC.xlsx",
} }
@ -101,7 +101,7 @@ def create_changelog_entry(new_version, parent=PATH_ISSUES):
if line.startswith("----"): if line.startswith("----"):
content.append("") content.append("")
content.append(f"{new_version}, work in progress:") content.append(f"{new_version}, work in progress:")
content.append(" - The following Workbooks did not have any changes: AS, Dry-1, Dry-2, Hyb, QC, Reg") content.append(" - The following Workbooks did not have any changes: ASQC, Dry-1, Dry-2, Hyb, HQC, Reg")
with changelog.open("w") as fh: with changelog.open("w") as fh:
fh.write(CRLF.join(content)) fh.write(CRLF.join(content))

Loading…
Cancel
Save