Repository navigation
ci: replace Anthropic release notes with GitHub-generated notes - #1102
Merged
Merged
Conversation
ilopezluna
marked this pull request as ready for review
November 5, 2026 14:04
Contributor
There was a problem hiding this comment.
Hey - I've found 3 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/workflows/release.yml" line_range="748" />
<code_context>
echo "Creating GitHub Release for $RELEASE_TAG"
+ notes_args=(--generate-notes)
+ if [ -n "$PREVIOUS_TAG" ]; then
+ notes_args+=(--notes-start-tag "$PREVIOUS_TAG")
+ fi
gh release create "$RELEASE_TAG" \
</code_context>
<issue_to_address>
**Backfilled release notes are wrong**
When an explicit semver tag targets a commit older than the latest published semver release, `prepare` sets `PREVIOUS_TAG` to the latest published tag without checking its position relative to the requested tag, so `gh release create` uses a newer tag as the notes start and produces incorrect or empty notes, or fails to create the release.
Choose a notes start tag that precedes the requested release target, and do not use a newer tag as the start.
Also at `.github/workflows/release.yml:749`.
</issue_to_address>
### Comment 2
<location path=".github/workflows/release.yml" line_range="749" />
<code_context>
- echo "**Full Changelog**: https://github.com/docker/model-runner/compare/${PREVIOUS_TAG}...${RELEASE_TAG}" >> release-notes.md
- else
- echo "**Full Changelog**: https://github.com/docker/model-runner/tree/${RELEASE_TAG}" >> release-notes.md
- fi
- fi
- echo "✅ Release notes:"
</code_context>
<issue_to_address>
**Release notes repeat an earlier release**
When two release workflow runs overlap and the earlier run publishes before the later run creates its release, a second release run can resolve `PREVIOUS_TAG` before the first run publishes, then create its release afterward; `gh release create` still uses that stale start tag, so its generated notes include changes already covered by the first release.
Serialize release runs and refresh or validate the previous published tag immediately before generating notes.
</issue_to_address>
### Comment 3
<location path=".github/workflows/release.yml" line_range="748" />
<code_context>
echo "Creating GitHub Release for $RELEASE_TAG"
+ notes_args=(--generate-notes)
+ if [ -n "$PREVIOUS_TAG" ]; then
+ notes_args+=(--notes-start-tag "$PREVIOUS_TAG")
+ fi
gh release create "$RELEASE_TAG" \
</code_context>
<issue_to_address>
**Draft tags truncate release notes**
When a newer draft release with a matching `vX.Y.Z` tag exists when the workflow resolves the previous tag, `prepare` can select a newer draft release's semver tag as `PREVIOUS_TAG`, then this command uses that tag as the notes start; GitHub omits changes since the latest published release, leaving the new release notes incomplete.
Exclude drafts when finding the latest published release tag before passing it as the notes start tag.
</issue_to_address>
doringeman
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vX.Y.Zrelease tag when available.ANTHROPIC_API_KEYreference from the workflow.Validation
make validate-allactionlint -ignore 'SC2129' .github/workflows/release.yml(the four SC2129 style warnings also occur onmain)gh release create --helpconfirms--generate-notesand--notes-start-tagare supported.After merge
ANTHROPIC_API_KEYrepository secret once the merged workflow no longer needs it.