Skip to content
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

Changelog prerelease command fix #509

Closed

Conversation

hubertdeng123
Copy link
Member

Adds a condition so that if preReleaseCommand is empty, but changelog changes still need to be committed, craft handles it

@hubertdeng123 hubertdeng123 requested a review from a team November 30, 2023 19:10
else if (!argv.noChangelog && config.preReleaseCommand && config.preReleaseCommand.length === 0) {
await commitNewVersion(git, newVersion);
}
else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading the code I think it would be better to always call commitNewVersion but update it to not hard error if there is nothing to commit. Earlier we ensure that the git status is clear before we start doing things, so we can trust that any changes that do now exist are supposed to be there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

either way this should also have a test demonstrating what you're trying to accomplish. it's sorta unclear from the code change and topic and would be nice to ensure it doesn't regress from a future change

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also review the documentation.

@chadwhitacre
Copy link
Member

This becomes urgent as we approach the next release, we'll hit the same issue in Vroom again otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants