Run gem:changelog on a runner - #3086
Merged
Merged
Conversation
Preparing a release from a Claude Code on the web session is possible except for this one step: `gem:changelog` and `gem:changelog:json` ask GitHub which pull requests the commits came from, they ask through `gh`, and such a session cannot reach `api.github.com` at all. The refusal is keyed on the session, so neither installing `gh` nor rewriting the task against REST gets around it. docs/release.md answers that today by describing how to assemble the same list with the GitHub MCP server instead — which is a second implementation of `changelog_pull_requests`, written in prose, that has to be kept in agreement with the first. It has already drifted twice. A runner has `gh` and `github.token`, as `gem:gh_release` in release-gems.yml already relies on, so the task can just be run where it works and read back from the log, the summary or the artifact. The ref selector picks the branch the changelog is for and the copy of the task that computes it, which are the same choice. Nothing is written: `contents: read` for the history and the tags, and `pull-requests: read` for what the commits came from. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QAgPhpLrU9Z4bENCR9RUub
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.
Some environments cannot reach
api.github.com, sorake gem:changelogcannot run there. This runs it on a runner instead, whereghandgithub.tokenboth work.