Skip to content

refactor: rename Minter to GitHubApp - #111

Merged
jplock merged 1 commit into
mainfrom
refactor/github-app-naming
Jul 20, 2026
Merged

refactor: rename Minter to GitHubApp#111
jplock merged 1 commit into
mainfrom
refactor/github-app-naming

Conversation

@jplock

@jplock jplock commented Jul 20, 2026

Copy link
Copy Markdown
Member

Renames the GitHub App token component after what it is rather than one verb it performs:

  • github/minter.rsgithub/app.rs, MinterGitHubApp
  • AppState.minterAppState.github_app; GitProxy.minterGitProxy.app
  • mint / mint_for_remotetoken_for / token_for_remote
  • doc mentions of "minter" updated across crates and CLAUDE.md

Also corrects the github module docs, which still described the tokens and the reverse proxy as read-only from before the push path existed.

No behavior change; all tests pass.

🤖 Generated with Claude Code


Note

Low Risk
Pure rename and documentation fixes with no logic changes; risk is limited to missed call sites, which grep shows are fully migrated.

Overview
This is a naming-only refactor of the control plane’s GitHub App integration so types and methods describe the component, not a single action.

Server: github/minter.rs becomes github/app.rs. Minter is GitHubApp; AppState.minter is github_app; GitProxy holds app instead of minter. Public mint APIs are renamed to token_for / token_for_remote (call sites in service, git_proxy, and main follow).

Docs/comments: References to “minter” are updated in CLAUDE.md, devbox-agent, devbox-common, and server modules. The github module docs now state the reverse proxy handles fetch and push (push gated on a claimed box), correcting stale “read-only” wording.

No API or auth behavior changes; tests were updated for the new names (e.g. mint_git_token_without_github_app_is_service_unavailable).

Reviewed by Cursor Bugbot for commit d48c41b. Bugbot is set up for automated code reviews on this repo. Configure here.

The struct is the server-side GitHub App client, not an abstract
'minter': github/minter.rs becomes github/app.rs, the state field
becomes github_app, and mint/mint_for_remote become
token_for/token_for_remote. Also refreshes the module docs, which
still described the tokens and reverse proxy as read-only from before
the push path existed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jplock
jplock merged commit b162b51 into main Jul 20, 2026
9 checks passed
@jplock
jplock deleted the refactor/github-app-naming branch July 20, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant