-
Notifications
You must be signed in to change notification settings - Fork 78
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
Code Generation Tracking #558
Comments
swift package diagnose-api-breaking-changes main --targets SwiftGodot Performs checkout and full build with plugin of both current and specified revision. Doesn't seem to be correct on my machine and doesn't detect breaking changes though |
I think an action that is triggered by a PR has access to the commit that the PR is merging into, as well as the commit that triggered the action? So there should be nothing to stop an action checking out and running the generator tool against both commits, then diffing the results. |
I've been looking for a way to get GH to show a nice diff across the output of an arbitrary diff command, but so far I've not found anything. The easiest way to do this might actually be to check in the generated files, but mark them with I don't like committing generated files in principle, but my main objection is that they clutter up the diff -- so if the attributes solve that, it might be ok. Apparently you can still click into the diff if you want to see it. |
Alternative strategy
|
It would be useful to have a GitHub action that can show and compare changes before-and-after changes to the code generator are done, for a quick inspection of the changes.
Like the #557 change, this would require us to store somewhere the "previous" version of the code I think (I do not want to check-in generated code into GitHub).
Or maybe have the code run twice, but unclear how I would get a "previous version of the generator"
The text was updated successfully, but these errors were encountered: