Repository navigation
Resolve $(Prop) versions, warn on new overloads, cut CI cost, document limits - #14
Merged
Merged
Conversation
BumpDetector used to skip Version="$(FooVersion)", so a PR that bumped a package through Directory.Build.props or a shared versions file produced an empty report. It now resolves the property from the project file, the nearest .props/.targets above it, or any other .props/.targets in the repository when all definitions agree, follows properties built from other properties, and treats a PR that only edits the property as a bump of every package that uses it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013ADYoFBDdhdMaSHyZBP2pP
A new overload with the same argument count can make existing source ambiguous or bind differently, while the compiled call still binds to the old member, so the diff saw no change. ApiDiff.OverloadAdded (ChangeKind OverloadAdded, Warning) flags each called method or constructor that gained one, including new extension methods in the same static class. An end-to-end test checks the flagged call is the one the compiler rejects with CS0121. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013ADYoFBDdhdMaSHyZBP2pP
- base-build input: analyse a base build an earlier step already made (the coverage step's worktree) instead of building the solution a second time. - packagebat-version input: install the published tool from nuget.org instead of compiling PackageBat from source. - README and example pin @v0 instead of @main, with a section on pinning. - New sections: cost in CI, PRs from forks (read-only token, report stays in the job summary), and what a green report does not tell you (behaviour, rebinding, generic constraints, nullable annotations, reflection and DI). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013ADYoFBDdhdMaSHyZBP2pP
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.
Requested by RT · project thread
Addresses outside review feedback. There are three commits, each one reviewable on its own.
1. Versions set through MSBuild properties
BumpDetector.ReadVersionsused to skipVersion="$(FooVersion)", which gave a silently empty report. It now resolves the property in this order:.props/.targetsin the project's folder or a parent folder (Directory.Build.props,Directory.Packages.props);.props/.targetsin the repository, when every definition there agrees (for exampleeng/Versions.props).It also follows properties built from other properties (
$(FooMajor).4.0). A PR that only edits the property counts as a bump of every package that uses it. Conditional definitions are only accepted in the'$(Foo)' == ''default pattern. Property functions are still skipped.2. New-overload warning (
ChangeKind.OverloadAdded, Warning)When a method or constructor you call gains an overload that takes the same number of arguments, recompiled source can become ambiguous or bind to the new overload. The same goes for a new extension method in the same static class. The compiled call still binds to the old member, so nothing was reported before. An end-to-end test checks that the flagged call is the one the compiler rejects with CS0121.
3. Action cost and docs
base-buildinput: analyse a build of the base commit that an earlier step already made, such as the coverage step's worktree, instead of building the solution again.packagebat-versioninput: install the published tool from nuget.org instead of compiling it.@v0instead of@main.Needs a tag after merge
@v0doesn't exist yet. After merging, tagv0.2.0on main (publish.yml pushes it to nuget.org) and create a movingv0tag on the same commit. Until then the README example points at a missing ref.Testing
dotnet test -c Release: 471 unit tests and 23 fuzz tests pass.action/run.shlocally against a scratch repo where aDirectory.Build.propsproperty bump was the only change. It was run three ways: with the default build, withbase-build(it skips the build and gives the same report), and withpackagebat-version: 0.1.0(the install works).Generated by Claude Code