Skip to content

ci(github): publish the tag annotation as notes - #10

Merged
mrcsin merged 1 commit into
masterfrom
ci-release-notes-from-tag
Oct 19, 2026
Merged

mrcsin merged 1 commit into
masterfrom
ci-release-notes-from-tag

Conversation

@mrcsin

@mrcsin mrcsin commented Oct 19, 2026

Copy link
Copy Markdown
Owner

GitHub releases carry the message of the tagged commit instead of the notes from the tag annotation. actions/checkout fetches the tagged commit by hash into refs/tags/<tag>, so the local tag has no annotation, and gh release create --notes-from-tag reads the commit message.

The release workflow now fetches the annotated tag from origin before it creates the release.

Verified locally against usher v0.2.0: a checkout-style fetch (git fetch --no-tags --depth=1 origin +<sha>:refs/tags/v0.2.0) gives a commit object whose contents are docs(repo): trim comments to the irreducible why; after git fetch --force origin refs/tags/v0.2.0:refs/tags/v0.2.0 the object is a tag and its contents are the release notes.

Every GitHub release so far carries the message of the tagged commit
instead of the notes written in the tag annotation. actions/checkout
fetches the tagged commit by its hash into refs/tags/<tag>, so the
local tag has no annotation and gh release create --notes-from-tag
reads the commit message. The workflow now fetches the annotated tag
from origin before it creates the release.
@mrcsin
mrcsin merged commit 5db9971 into master Oct 19, 2026
2 checks passed
@mrcsin
mrcsin deleted the ci-release-notes-from-tag branch October 19, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant