Skip to content

Commit 72d5661

Browse files
move changelog delimiters to changelog tracker (#36828)
Co-authored-by: Catalina Peralta <[email protected]>
1 parent 3230274 commit 72d5661

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/breaking_changes_checker/changelog_tracker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,6 @@ def _build_md(content: list, title: str, buffer: list):
171171
if self.breaking_changes:
172172
_build_md(self.breaking_changes, "### Breaking Changes", buffer)
173173
content = "\n".join(buffer).strip()
174+
175+
content = "===== changelog start =====\n" + content + "\n===== changelog end =====\n"
174176
return content

scripts/breaking_changes_checker/detect_breaking_changes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,8 @@ def test_compare_reports(pkg_dir: str, changelog: bool, source_report: str = "st
321321

322322
remove_json_files(pkg_dir)
323323

324-
print("===== changelog start =====")
325324
print(checker.report_changes())
326-
print("===== changelog end =====")
325+
327326
if not changelog and checker.breaking_changes:
328327
exit(1)
329328

0 commit comments

Comments
 (0)