Add --generate-notes flag to gh release create command.#4467
Add --generate-notes flag to gh release create command.#4467
--generate-notes flag to gh release create command.#4467Conversation
gh release create command.--generate-release-notes flag to gh release create command.
There was a problem hiding this comment.
Hi, this looks like a great start! Thank you for your contribution.
Before this ships, I think there are a number of changes I would like to propose here in order to improve the overall experience of creating releases with generated notes. However, because these suggestions increase the complexity of the changeset that would be required to implement them, I'm not necessarily asking you to do it in this PR. One of our team could use your PR as a starting point and bring this to completion.
Here are my thoughts:
-
We should not offer both
Automatically generate the release notesandWrite using commit log as template. These options are too similar (they both use git log to generate release notes) and we should prefer to use the new API and retire the old approach. -
We should allow the editor phase for when you choose
Automatically generate the release notesso you can review the release notes before posting. This API endpoint can be used for fetching generated release notes before a release is actually created. -
If the API isn't available (e.g. in a GitHub Enterprise version), generating release notes should fall back to the current implementation of using the git commit log locally.
-
The non-interactive flag
--generate-notesallows you to skip the editor phase. This would have the same behavior that you currently implemented, except that we propose that the flag name is shorter than--generate-release-notes.
How does all that sound? @Sixeight: you may continue working on this PR if you feel up for it, and otherwise we can take this over at this point. Again, thank you for making this!
|
@mislav Thank you for your polite reply. |
--generate-release-notes flag to gh release create command.--generate-notes flag to gh release create command.
09d9c48 to
6e9441f
Compare
|
I'm sorry, I haven't gotten around to it and it's taking me a while to implement. |
|
@mislav or @samcoe is this something you (Github) is planning to add support for? It would be a great addition! If it is, maybe you could pick this PR up and drive it over the finish line? It seems like this contributor has gotten pretty far, but relying on volunteers working on their spare time is bound to be slow :) Maybe better if someone employed by Github could drive it to completion. |
6e9441f to
2d6b1c2
Compare
samcoe
left a comment
There was a problem hiding this comment.
@Sixeight Thanks for the contribution! I went ahead and rebased against trunk as well as made a couple commits that added a bit of 💅 and created an interactive test. The interactive test turned out to be fairly involved to write, involving a small refactor, so great work on getting us that far!
mislav
left a comment
There was a problem hiding this comment.
Looks good, but just note the HTTP status check
mislav
left a comment
There was a problem hiding this comment.
Looks good, but just note the HTTP status check
Fixes #4466
TODO