feat: add import-gh-token command for SSO-enabled organizations#24
Merged
steipete merged 1 commit intosteipete:mainfrom Jan 21, 2026
Merged
Conversation
Adds a new CLI command `repobar import-gh-token` that imports the authentication token from GitHub CLI (gh) into RepoBar's keychain. This is useful for users in SSO-enabled organizations where: - The gh CLI is already authorized for their org via SAML SSO - RepoBar's built-in OAuth flow can't get org access (requires admin approval) Usage: repobar import-gh-token The command: - Reads the token from `gh auth token` - Stores it in RepoBar's keychain with a 1-year expiry - Works with both the CLI and the menu bar app Fixes steipete#2
steipete
added a commit
that referenced
this pull request
Jan 21, 2026
steipete
added a commit
that referenced
this pull request
Jan 21, 2026
Owner
|
Landed via temp rebase onto main.\n\n- Gate: pnpm lint && pnpm build && pnpm test\n- Land commit: bcc272096b5ab86f44d9a2aa0f8157d968e48c0f\n- Merge commit: 226046c\n\nThanks @bahag-chaurasiak! |
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
Adds a new CLI command
repobar import-gh-tokenthat imports the authentication token from GitHub CLI (gh) into RepoBar's keychain.This is useful for users in SSO-enabled organizations where:
Usage
How it works
gh auth tokenPrerequisites
brew install gh)gh auth login)Test plan
repobar import-gh-tokenrepobar listshows organization reposrepobar import-gh-token --helpshows usage infoFixes #2