4 Commits

Author SHA1 Message Date
willsather
d428542158 fix: await async getAppCoAuthorTrailer call and fetch bot user ID 2026-04-14 01:49:43 +00:00
openharness[bot]
288df2c80e
chore: rename Open Harness to Open Agents (#624)
Co-authored-by: nicoalbanese <49612682+nicoalbanese@users.noreply.github.com>
2026-04-07 17:57:26 +00:00
Nico Albanese
6603081f4d
feat: add co-author trailer for GitHub App commits (#204)
* feat: add co-author trailer for GitHub App commits

* chore: format api routes
2026-02-20 16:58:21 +01:00
Nico Albanese
a6177acd41
feat: unified GitHub App install + OAuth flow with per-org install UI (#165)
* feat: unified GitHub App install + OAuth flow with per-org install UI

Replaces the two-step OAuth-then-install flow with a single GitHub App
installation flow that handles OAuth authorization inline (via GitHub's
'Request user authorization during installation' setting).

- Add app callback OAuth code exchange so install + account link happen
  in one redirect
- Use /installations/select_target URL to always show the account/org
  picker (fixes redirect to existing personal install settings)
- Add per-org install via target_id for direct org install links
- Add /api/github/orgs/install-status endpoint returning per-org
  install state with GitHub IDs
- Rebuild accounts settings page with per-org status rows, install/
  configure actions, request-access guidance, and post-return toasts
- Delete the separate OAuth link routes (no longer needed)
- Add sonner for toast notifications
- Update repo-selector-compact wording to 'Install to organization'
- Document GitHub App setup requirements (public app, OAuth during
  install, callback URL) in .env.example and AGENTS.md

* Fix GitHub app callback auth and installation sync pagination

* Fix GitHub reconnect after disconnect skipping install page

After disconnecting GitHub, the app only revoked the OAuth token but the
GitHub App installation remained. Clicking Connect again sent users to
the install page which redirected to existing installation settings
instead of re-authorizing.

Use a github_reconnect cookie set during disconnect to route reconnects
through the OAuth authorize URL, re-linking the account and syncing
existing installations without requiring a fresh app install.

* Fix installation upsert conflict and initial repo push token

* Fix repo creation to use installation tokens and add owner picker

Use installation tokens for org repo creation (createInOrg) and user
OAuth tokens for personal accounts. Add account/org picker to the
create repo dialog so users select where to create the repository.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix repo creation push token and missing installation handling

Return an error when the requested owner has no GitHub App installation
instead of silently falling back to the user's personal account. Use
installation token for push only on org repos — personal accounts use
the OAuth token that created the repo to avoid permission gaps when the
installation has "selected repositories" access.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 20:43:44 +01:00