Repository navigation
feat: show the app's logo on the installer pages - #56
Merged
Merged
Conversation
GitHub can't set an app's logo from a manifest and has no API for it, so installer.Config takes an optional Icon. The setup page shows it with a download link, and the success page links to the app's settings, where it's uploaded under Display information. New rejects icons GitHub won't take: over 1 MB, or not a PNG, JPEG, or GIF. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sgtoj
added a commit
to cruxstack/github-ops-app
that referenced
this pull request
Nov 30, 2026
The old icon was built from the Octocat and Slack logos, and blurred at the sizes Slack and GitHub show it. The new one, two branches merging into a green check, lives at assets/icon.png with its source in assets/icon.svg, and is 42 KB, under the 1 MB GitHub takes for a logo. The Slack setup page already set it on the Slack app. GitHub has no API for app logos, so the installer now shows it with a download link and links to the app's settings to upload it, through github-app-setup-go's new installer.Config.Icon. That isn't released yet, so go.mod points at cruxstack/github-app-setup-go#56 until it is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sgtoj
added a commit
to cruxstack/github-ops-app
that referenced
this pull request
Nov 30, 2026
v0.8.0 releases installer.Config.Icon (cruxstack/github-app-setup-go#56), which go.mod pointed at by commit until now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
GitHub can't set a GitHub App's logo from a manifest, and there's no API for it, so apps created with the installer always start without one. This adds an optional
Icontoinstaller.Configso the installer can at least hand the logo over and point at where it goes.GitHubOrgis set), where it's uploaded under Display information.Newreturns an error for an icon GitHub won't take, meaning over 1 MB or not a PNG, JPEG, or GIF.The logo is embedded in the pages as a data URL, so it needs no extra route and works wherever the handler is mounted. Without
Icon, the pages are unchanged.github-ops-app will use this for its GitHub App icon (cruxstack/github-ops-app#33), so a release after this merges would unblock that PR.
Tested with
go test -race(new tests cover the validation, both pages, the org and personal settings links, and escaping) andgo vet. I also rendered both pages in Chrome. golangci-lint reports issues elsewhere in the repo, none in this change.🤖 Generated with Claude Code