Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

feat(sg): add version=auto for sg release cut#62970

Merged
Chickensoupwithrice merged 2 commits into
mainfrom
al/release-cut-auto-version
May 29, 2024
Merged

feat(sg): add version=auto for sg release cut#62970
Chickensoupwithrice merged 2 commits into
mainfrom
al/release-cut-auto-version

Conversation

@Chickensoupwithrice

Copy link
Copy Markdown
Contributor

Previously, the version number had to be specified explicitly during the sg release cut command. Now we can optionally pass --version=auto to query release-registry for the next version.
We need this in both places, since on main cut releases, this is the first step that happens, but during patch releases, the first step is sg release create which also has --version=auto.

Test plan

Tested manually

Changelog

  • Add --version=auto to sg release cut

@cla-bot cla-bot Bot added the cla-signed label May 29, 2024
@Chickensoupwithrice Chickensoupwithrice requested review from a team and BolajiOlajide May 29, 2024 19:26

@BolajiOlajide BolajiOlajide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good to me.
Thank you @Chickensoupwithrice .

However, it seems like we have this logic duplicated now. It might be helpful to have this in a function and call it in the "sg release cal" and "sg release create" command which accepts the "--version=auto" flag.

We don't have to do this now, I just thought to share here.

@BolajiOlajide

Copy link
Copy Markdown
Contributor

Ignore me

@Chickensoupwithrice

Copy link
Copy Markdown
Contributor Author

It seems like it might still be a good idea to have a function to parse version across all the different subcommands

@Chickensoupwithrice

Copy link
Copy Markdown
Contributor Author

Testing:
image

@Chickensoupwithrice Chickensoupwithrice merged commit de92006 into main May 29, 2024
@Chickensoupwithrice Chickensoupwithrice deleted the al/release-cut-auto-version branch May 29, 2024 21:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants