Skip to content

Commit e480f3c

Browse files
authored
fix changelog (#40910)
1 parent fa88072 commit e480f3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/azure-sdk-tools/packaging_tools/package_utils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -311,15 +311,15 @@ def check_changelog_file(self):
311311

312312
def edit_changelog_proc(content: List[str]):
313313
next_version = self.next_version
314+
if next_version == "1.0.0b1":
315+
content.clear()
316+
content.append("# Release History\n")
314317
content[1:1] = [
315318
"\n",
316319
f"## {next_version}{self.version_suggestion} ({self.target_release_date})\n\n",
317320
self.get_changelog(),
318321
"\n",
319322
]
320-
if next_version == "1.0.0b1":
321-
for _ in range(4):
322-
content.pop()
323323

324324
modify_file(str(Path(self.sdk_code_path()) / "CHANGELOG.md"), edit_changelog_proc)
325325

0 commit comments

Comments
 (0)