Skip to main content

Crate cockpitctl_render

Crate cockpitctl_render 

Source
Expand description

PR comment rendering for cockpitctl.

Renderer must:

  • be deterministic
  • be budgeted
  • link to artifacts rather than dumping content

It should not parse sensor-specific markdown. Link only.

Structs§

AnnotationRenderResult
Result of annotation rendering, tracking whether truncation occurred.
GitHubAnnotationResult
Result of GitHub annotation rendering.

Functions§

append_comment_sections
Append externally supplied comment sections before the cockpit end marker.
render_annotations
Render annotations (file-level or inline findings) with capping.
render_annotations_section
Render annotations section for the PR comment.
render_buildfix_apply_section
Render buildfix apply evidence (if present) as a markdown section.
render_buildfix_section
Render a buildfix summary as a markdown section for the PR comment.
render_comment
render_github_annotations
Render GitHub Actions workflow command annotations from highlights.
render_policy_signature_section
Render policy signature evidence as a markdown section for the PR comment.
render_trend_section
Render a trend delta as a markdown section for the PR comment.