diff --git a/.github/workflows/api-review-baselines.yml b/.github/workflows/api-review-baselines.yml index 521b18774aa..aba373d580a 100644 --- a/.github/workflows/api-review-baselines.yml +++ b/.github/workflows/api-review-baselines.yml @@ -191,21 +191,22 @@ jobs: section = ( f"## API review baseline changes for `{filename}`\n\n" - 'The diff below was generated by `ApiChief` between the base and selected PR versions.\n\n') + "
\nShow diff\n\n" + 'The diff below was generated by `ApiChief` between the base and the PR.\n\n') for review_file in review_files: section += ( f"{review_file.read_text(encoding='utf-8').rstrip()}\n\n") - section = section.rstrip() + section = section.rstrip() + '\n\n
' elif new_exists: section = ( f"## API review baseline changes for `{filename}`\n\n" - 'This baseline file was **added** in the selected PR.') + 'This baseline file was **added** in the PR.') elif old_exists: section = ( f"## API review baseline changes for `{filename}`\n\n" - 'This baseline file was **removed** in the selected PR.') + 'This baseline file was **removed** in the PR.') if not section: continue diff --git a/eng/Tools/ApiChief/Commands/EmitDelta.cs b/eng/Tools/ApiChief/Commands/EmitDelta.cs index 47fa5ea97dc..fb21a0ded36 100644 --- a/eng/Tools/ApiChief/Commands/EmitDelta.cs +++ b/eng/Tools/ApiChief/Commands/EmitDelta.cs @@ -181,7 +181,7 @@ private static string FormatDiffMarkdown(ApiType type) AppendStageDiffLine(lines, type.Additions, '+'); AppendGroupedDiffMembers(lines, type); - return $"### `{type.Type}`{Environment.NewLine}{Environment.NewLine}```diff{Environment.NewLine}{string.Join(Environment.NewLine, lines)}{Environment.NewLine}```{Environment.NewLine}"; + return $"```diff{Environment.NewLine}{string.Join(Environment.NewLine, lines)}{Environment.NewLine}```{Environment.NewLine}"; } private static void AppendStageDiffLine(List lines, ApiType? changeSet, char prefix)