Skip to content

Count breaking changes and assemblies right in the GitHub comment - #73

Merged
Mpdreamz merged 1 commit into
mainfrom
github-comment
Nov 14, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
github-comment

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

The github-comment format now counts the breaking changes it marks, the assemblies it scanned, and each assembly's own differences.

Prompt summary: The tool is being dusted off, and its GitHub comment is about to be posted on pull requests. Its summary contradicts the details below it, so it has to be right first.

Why

Without --prevent-change, the summary always said + 0 breaking change(s) detected., even above changes it marked 💥. It counted only changes matching the prevent level, and the default level matched none. It always said Scanned: 📑 1 assemblies(s), and every assembly's details said "Click here to see the N differences" with the total of all assemblies.

What

Breaking means what the suggestion means

A change counts as breaking when it alone calls for a Major version, the rule the suggested version uses since #69. A removed member, a changed signature, and a new interface or required member count. A moved NullableContextAttribute does not. A modified member is not counted on top of the change inside it. Across the 100 corpus seeds, a suggestion is Major exactly when the comment counts a breaking change.

Counts per comment and per assembly

The summary names the number of assemblies scanned and the number with breaking changes, as "1 assembly" or "3 assemblies". Each assembly's details count only that assembly's differences.

Verify

mise run test

The snapshots change only in their github-comment sections.

🤖 Generated with Claude Code

@Mpdreamz Mpdreamz added the bug A defect fixed (patch) label Nov 14, 2026
The comment counted breaking changes only for the --prevent-change level,
so without one it said 0 next to changes it marked breaking; it always said
1 assembly was scanned, and every assembly's details counted the
differences of all of them. A change is now breaking when it alone calls
for a Major version, the rule the suggested version uses, and a modified
member is not counted on top of the change inside it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Mpdreamz
Mpdreamz merged commit 032ed89 into main Nov 14, 2026
6 checks passed
@Mpdreamz
Mpdreamz deleted the github-comment branch November 14, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A defect fixed (patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant