-
Notifications
You must be signed in to change notification settings - Fork 18
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
Change commit messages in all repositories #200
Comments
Created for discussion after getting feedback that there is no clear way what PR's should have commit changed and how to flag changes etc. I think change should be added to code PR's (OpenAPI updates can be still chore) |
What if it is a
I agree with this. |
I think feat or fix are easier to change than chore as PR's are merged and they are not appearing in changelog.
If I read changelog later changing from fix to feat is easy - problem is if there is no entries for entire release :D |
I think using a tool like https://github.com/Tufin/oasdiff would come in handy here. I tried to include it into the PR created through the Update OpenAPI specification workflow but it did not seem to work. |
A problem is that our SDK generation workflow generates for all SDKs, so technically it is challenging to provide granular commit messages when there are multiple SDKs updated, where one could have a fix, one could have a feat and one could have a breaking change. Do you just go with the most major change? |
It does generate all SDK's but in practice it only generates single one due to single OpenAPI change so never had problem with this specifically. Problems I have right now:
After all is resolved we would have very good way to let people know about changes without sending specific emails etc. |
After checking I think we could keep original message in the openapi file (and use generation as form of keeping repo up to date with openapi files. |
I actually think conventional commits are not suitable as a changelog for the SDKs as they are limited to the size of the commit message which really does not tell you enough of what has changed in the OpenAPI. Tufin/oasdiff can be used to generate a PR description, which will be helpful for the maintainer to review. We can also use a diff tool to generate a changelog between two tags. |
Amazing idea. I was wondering if possible to use second lines from commits in gitchangelog when adding support to js-sdk |
Actually I retract that - this will focus too much on the OpenAPI differences, but users will not even care about this since they are using the SDK only. I will try again to generate an OpenAPI diff and use it to create better commits. |
@craicoverflow another idea worth checking Import commits from source repo into description. |
Yeah maybe - but I imagine source repo commits might focus more on low level details and might not transcribe well to the changelog for an SDK - which should be understandable with little context of the change details. |
Yes. Feel free to do what you feel is best. |
Currently our commits have:
chore(openapi) ...
I think we should include name of the component inside the commit and use fix.
This way we can ensure that we will get meaningful changelog.
fix(kafka-admin) ...
The text was updated successfully, but these errors were encountered: