Skip to content

ci: replace Anthropic release notes with GitHub-generated notes - #1102

Merged
ilopezluna merged 1 commit into
mainfrom
chore/remove-anthropic-release-notes
Nov 5, 2026
Merged

ilopezluna merged 1 commit into
mainfrom
chore/remove-anthropic-release-notes

Conversation

@ilopezluna

Copy link
Copy Markdown
Contributor

Summary

  • Remove the Anthropic-powered release-notes job and its unused agent configuration.
  • Generate notes for the GitHub Release with GitHub's built-in release notes, starting from the previous vX.Y.Z release tag when available.
  • Remove the release-notes artifact dependency and the ANTHROPIC_API_KEY reference from the workflow.

Validation

  • make validate-all
  • actionlint -ignore 'SC2129' .github/workflows/release.yml (the four SC2129 style warnings also occur on main)
  • gh release create --help confirms --generate-notes and --notes-start-tag are supported.

After merge

  • Confirm the next release has usable generated notes.
  • Remove the ANTHROPIC_API_KEY repository secret once the merged workflow no longer needs it.

@ilopezluna
ilopezluna marked this pull request as ready for review November 5, 2026 14:04

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
@ilopezluna
ilopezluna merged commit b991d89 into main Nov 5, 2026
14 checks passed
@ilopezluna
ilopezluna deleted the chore/remove-anthropic-release-notes branch November 5, 2026 14:36
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.

2 participants