Skip to content

Commit 5504b40

Browse files
authored
Always print out class name as title (#11296)
1 parent 41fbd25 commit 5504b40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/api_diff_report/api_diff_report.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ def generate_markdown_report(diff, level=0):
177177
else:
178178
current_status = value.get('status')
179179
if current_status:
180-
# Module level: Always print out module name as title
181-
if level == 0:
182-
report += f'{header_str} {key} [{current_status}]\n'
180+
# Module level: Always print out module name and class name as title
181+
if level in [0, 2]:
182+
report += f'{header_str} [{current_status}] {key}\n'
183183
if current_status != STATUS_ERROR: # ADDED,REMOVED,MODIFIED
184184
report += '<details>\n<summary>\n'
185185
report += f'[{current_status}] {key}\n'

0 commit comments

Comments
 (0)