Improve rule table title

This commit is contained in:
Zanie
2023-10-25 18:02:15 -05:00
parent 11e99655b8
commit c2cae71247
2 changed files with 3 additions and 2 deletions

View File

@@ -145,8 +145,8 @@ def summarize_check_result(result: Result) -> str:
lines.extend(
markdown_details(
summary="Rule change summary",
preface=f"{len(all_rule_changes.rule_codes())} rules changed",
summary=f"Changes by rule ({len(all_rule_changes.rule_codes())} rules affected)",
preface="",
content=table_lines,
)
)

View File

@@ -11,6 +11,7 @@ def markdown_project_section(
) -> list[str]:
return markdown_details(
summary=f'<a href="{project.repo.url}">{project.repo.fullname}</a> ({title})',
# Show the command used for the check
preface="<pre>ruff " + " ".join(options.to_cli_args()) + "</pre>",
content=content,
)