Repository navigation
Conversation
A hand-written change never moves .spec-version, so the Breaking changes check passed it untouched. The surface comparison the regen ran moves into the check, now over hand-written code too, and the regen writes breaking footers from its own sdk lines, as stream-sdk-java and getstream-net do.
👋 Hi 🌵, want a second pair of eyes on this?I'm Jeffery, Stream's review agent. I look for bugs, regressions, missing tests and slow paths, and I only post findings I've checked against the code.
Or comment |
This branch has not been deployed
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.
Problem
A hand-written PR can remove or change public API without a
!in its title and ship as a minor. The Breaking changes check only looks at.spec-version, so such a PR passes it untouched.Solution
!or the PR is labelledsdk-not-breaking. It now covers all ofsrc/exceptsrc/GeneratedModels, whose constructors take named arguments only.getstream-phpsdk lines that chat allowlisted, as stream-sdk-java and getstream-net do, and the Breaking changes check counts those sdk tickets. A regen whose methods break callers in a way chat's check allows (chat matches optional arguments by name) now fails the new step, and the regen's existing "failing required check" heads-up brings a human.How to verify
actions/checkoutbuilds them: v13.1.0 to master (31 commits) reported nothing; v12.1.1 to v13.0.0 reported the major's breaks; renamingClient::getBaseUrl()failed; adding an optional argument passed; adding a required one passed only with!.getstream-phpandstream-pysdk lines, wrote footers for thegetstream-phplines only. The awk gives the same output under mawk.