-
-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pull Request behind the target branch causing issues #325
Comments
I don't understand why you want to do it. A Pull Request is defined to be merged into Could you explain a bit more? Maybe I don't understand something? |
Closing because I did not get any answer. |
Apologies @kamilkisiela, I managed to miss your reply here. Suppose you have two developers, Bob & Sue, both working on the same codebase. They both pull the code at the same time to begin their work -- let's call the commit they start with After a day, Sue commits a change where she adds a new field to the schema ( Bob then pushes a new feature that does not change the schema whatsoever, and so can't possibly introduce a backwardly incompatible change. However, Of course, he's doing no such thing, and the problem is only that the latest version of Hopefully that makes more sense now? |
I'll second this request! We've run into this fairly frequently, with the same circumstances that @dchambers described. We would love to see it compare the merged/rebased commit against the defined schema instead of comparing the tip of the branch against the defined schema. |
sounds reasonable, I will work on a solution then :) |
Wonderful, thanks! |
Should be ready soon :) |
I will try to use https://docs.github.com/en/rest/reference/repos#compare-two-commits and somehow apply the patch, then compare. If there are conflicts, Inspector will fail the ci check and notify about it. |
@tylercrumpton @wopian @euvl @dchambers good news :) This way on every pull request we get the schema from |
@kamilkisiela is this also available in the GitHub Action? |
@wopian not yet but I'm working on it now |
@wopian done, use |
Feedback welcome! |
Thanks so much! I'll go give it a shot! |
Looks like it's working perfectly! We'll keep that flag turned on in our repo and see how that goes! Thanks, again! |
@kamilkisiela thank you! Will add this to my TODO list, this and something on our end ended up making me postpone adding it to our actions at the time. |
By comparing a PR that may not have been rebased against the latest changes to
master
againstmaster
itself, graphql-inspector emits backwards compatibility warnings for any recently added fields, even though these fields won't be removed by the PR. Although it's possible to work around this by merging the latestmaster
whenever this happens, this is a bit of a faff, especially given that GitHub doesn't provide a button for doing this unless there's a merge conflict.Are there any tricks that would allow graphql-inspector to avoid showing these red herrings?
The text was updated successfully, but these errors were encountered: