Skip to content

improved diff summaries - #11

Merged
cjllanwarne merged 1 commit into
mainfrom
cjl_improved_summaries
Aug 14, 2026
Merged

cjllanwarne merged 1 commit into
mainfrom
cjl_improved_summaries

Conversation

@cjllanwarne

Copy link
Copy Markdown
Collaborator

Show actual content for opened and reopened poams. Just summaries for everything else.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the core PoamFileDiff.print_summary() output to make diff results easier to scan in the CLI by emphasizing newly opened (and intended: reopened) items, while keeping non-actionable categories compact.

Changes:

  • Replaced verbose per-category sections with a top-level summary of key counts.
  • Added scannable bulleted lists for newly opened POAMs and newly opened configuration findings (including risk rating and detection date).
  • Added a compact “reopened” section (currently less detailed than the “opened” sections).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tools/diff.py
Comment on lines +171 to +174
print("\n=== Reopened Findings ({}) ===".format(len(self.reopened_findings)))
if self.reopened_findings:
for match in self.reopened_findings[:max_preview]:
print(f"- [{match.poam.poam_id}] {match.poam.weakness_name} — {match.finding.finding_id}")
@cjllanwarne
cjllanwarne merged commit 669883b into main Aug 14, 2026
2 checks passed
@cjllanwarne
cjllanwarne deleted the cjl_improved_summaries branch August 14, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants