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
Add JSON output option to 'prepare-release' command #486
Conversation
Your sample actually shows PascalCase. So I'm confused as to which one is accurate. |
Sorry about that, I wrote that down in the wrong order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. Very well thought out and I'm glad you did it rather than me because you took care to handle scenarios I wouldn't have thought of.
Just a couple of nits to take care of before I merge, please.
This PR adds a
--format
parameter toprepare-release
that allows setting the output format tojson
.I made some adjustments to the output format proposed in #481.
The output will look like this:
get-version
.get-version
devBranch
andreleaseBranch
are namedCurrentBranch
(the branch the command was started on) andNewBranch
(the new branch that was created) instead.That way, the scenario that the command is started on the release branch can be handled as well. In that case, the
NewBranch
property will benull
because no new branch was created.Fixes #481