You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve documentation to distinguish between gh release create--notes-from-tag and --generate-notes #8372
We received some feedback that it wasn't obvious what the difference between --notes-from-tag and --generate-notes flags were on gh release create. Specifically, it's a bit confusing because --generate-notesactually calls the generate-notes endpoint where as --notes-from-tag mostly just formats the contents of an annotated tag with git tag --list <TAG> --format=%(contents:subject)%0a%0a%(contents:body) so the word "generation" is doing some heavy lifting and is perhaps a bit confusing.
I suggest we just update the command help and avoid using the word generation for --notes-from-tag.
Reacted by Oleksii Holub, Daniel Esik, Sergio Garcia and Andrey Kozhev
Hopefully I'm not too off topic, but I was playing with the --notes-from-tag and I was expecting that the notes would be taken from the annotated tag message rather than the commit message the tag is attached to.
Turns out it is not the case 🤷🏾 might we actually drop the annotated from the description?
i.e. something like Automatically get the commit message from the tag
Reacted by Ned Twigg, Noah, Martin Bonnin, David Paul, Bartłomiej Prus-Zajączkowski, Sam Rayner and Kynan Ware
Just came across this after having the same issue as @gforcada
I think it would make more sense for --notes-from-tag to pull the tag annotation message first, then if it's NOT annotated, use the last commit message like the current functionality
Reacted by Bartłomiej Prus-Zajączkowski and Sam Rayner
The documentation clearly distinguishes between the --notes-from-tag and --generate-notes flags, explaining their differences in behavior and output and
The help text for --notes-from-tag does not refer to "generation" and instead describes that the notes are fetched from the commit message of the commit associated with the tag or the tag annotation. See --notes-from-tag should warn if the tag is not annotated #9558 (comment) for a behavior analysis.
The help text for --generate-notes indicates that this flag uses the GitHub Release Notes API to generate release notes content.
Activity
Tyrrrz commentedon Nov 23, 2023
For a bit more context, this is how the docs for the command look:
The description for both options is also very similar:
So it's easy to get confused, thinking they do the same thing.
gforcada commentedon Nov 25, 2023
Hopefully I'm not too off topic, but I was playing with the
--notes-from-tagand I was expecting that the notes would be taken from the annotated tag message rather than the commit message the tag is attached to.Turns out it is not the case 🤷🏾 might we actually drop the
annotatedfrom the description?i.e. something like
Automatically get the commit message from the tagenlightenedpie commentedon Sep 12, 2024
Just came across this after having the same issue as @gforcada
I think it would make more sense for
--notes-from-tagto pull the tag annotation message first, then if it's NOT annotated, use the last commit message like the current functionalityBagToad commentedon Jul 27, 2025
Acceptance Criteria
When I run
gh release create --helpThen:
--notes-from-tagand--generate-notesflags, explaining their differences in behavior and output and--notes-from-tagdoes not refer to "generation" and instead describes that the notes are fetched from the commit message of the commit associated with the tag or the tag annotation. See--notes-from-tagshould warn if the tag is not annotated #9558 (comment) for a behavior analysis.--generate-notesindicates that this flag uses the GitHub Release Notes API to generate release notes content.