Skip to content

Improve documentation to distinguish between gh release create --notes-from-tag and --generate-notes #8372

Closed

Description

@williammartin

Description

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-notes actually 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.

Activity

  1. added
    gh-release
    enhancement
    on Nov 23, 2023
  2. Tyrrrz commented on Nov 23, 2023

    @Tyrrrz

    For a bit more context, this is how the docs for the command look:

    image

    The description for both options is also very similar:

    + Automatically generate title and notes for the release
    - Automatically generate notes from annotated tag

    So it's easy to get confused, thinking they do the same thing.

  3. added
    help wanted
    on Nov 24, 2023
  4. gforcada commented on Nov 25, 2023

    @gforcada

    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

  5. enlightenedpie commented on Sep 12, 2024

    @enlightenedpie

    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

  6. BagToad commented on Jul 27, 2025

    @BagToad
    Member

    Acceptance Criteria

    When I run gh release create --help
    Then:

    • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsenhancementgh-releasehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions