Repository navigation
Count breaking changes and assemblies right in the GitHub comment - #73
Merged
Merged
Conversation
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
force-pushed
the
github-comment
branch
from
November 14, 2026 07:28
6be4ccd to
dd2a2dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
github-commentformat 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 saidScanned: 📑 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
Majorversion, the rule the suggested version uses since #69. A removed member, a changed signature, and a new interface orrequiredmember count. A movedNullableContextAttributedoes not. A modified member is not counted on top of the change inside it. Across the 100 corpus seeds, a suggestion isMajorexactly 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 testThe snapshots change only in their
github-commentsections.🤖 Generated with Claude Code