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
Support gh release edit #5422
Support gh release edit #5422
Conversation
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.
Hi, thanks for this! This is going in a good direction.
What do you think of renaming the command to edit
? We also have gh repo edit
, gh issue edit
, so gh release edit
would be consistent with that. Also, the web UI for Releases renders an “Edit” button, so it looks like the verb "edit" might be more familiar to GitHub users, even though "update" is a perfectly valid verb as well.
Just chiming in to link the issue for editing a release #1997 and additionally the mocks in this comment #1997 (comment) |
Hi Mislav, thank you for all your guidance and detailed comments. I've tried to address all of them in a series of commits. If you see something else that could be improved, or is wrong, please let me know and I'm happy to make another set of changes. I'm a bit surprised by the API behaviour: On the web interface of GitHub I've created a draft release, pointing to some tag (v2.5.0) Now when I just update the release notes (body) of this release, the previously specified tag is lost.
Only sending the Once this request finished, the previously specified tag is lost: Wondering what implications it has on the new |
@plu That indeed sounds like a bug and I've just confirmed this. In this case, please send the Additionally, I wonder if |
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.
Looks great! Withholding approval until all what was discussed for this PR is finalized.
Thank you again for your feedback, Mislav. One more thing I'm wondering: Sam linked some issue (#1997) where the release edit command was sketched. There a flag What do you think? |
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.
Looks great! I've pushed a small fix for when no flags are passed.
There a flag
--publish
was mentioned, which I like better than--draft=false
. I'm wondering if it would be a good UX if we'd provide both flags,--publish
and--draft
.
I do generally like the idea of --publish
flag, but I don't think it's required for this iteration, especially because you've already included in the documentation the --draft=false
example. I will go ahead and ship this as-is and we can potentially continue the discussion about --publish
in a separate thread if we find evidence that our users would benefit from extra clarity.
Thank you! |
Adds support (non-interactive) for updating a release.
Currently without any interactive part, only via command line parameters.
Unfortunately I could not reopen #5421 - and sorry for not providing any description upfront.
Examples: