Pilot GitHub App Build

Status page. Last update: 2026-10-16 04:45. Status: ready for review. Nothing is committed. Design source: Pilot GitHub App proposal.

Goal

Pilot reads its Central settings from instance metadata. If Central is available, Pilot replaces PAT-based Git access with GitHub App access. If Central is not available, Pilot shows only the PAT form. If Central is available, Pilot also shows a "Connect via Frappe Central" option.

Setup

ItemValueStatus
GitHub Apppilot-central-dev, App ID 5337509. Contents read, Metadata read. OAuth during install on. Token expiry on.Done
Private key, client secret, webhook secretGenerated. Kept in a local private folder. The key was checked against the GitHub API.Done
Callback and webhook URLCloudflare quick tunnel to central.localhost. The URL changes when the tunnel restarts. Then the App URLs must change too.Done
Test repositoriesOne private and one public dummy Frappe app in the owner account.Done
Central availabilityNo new metadata key. Pilot asks Central with its existing token. If Central answers, Pilot shows the Connect option.Decided
Test sitescentral.localhost and atlas.localhost on the current bench. Real end-to-end tests only. No test runner on these sites.Decided
Contents permissionRead only for now. Write can come later with a separate push flow.Decided
Layout of Central Settings GitHub tab and GitHub ConnectionMockup sent. Adds a "Create GitHub App" button (GitHub App manifest flow). Repository table keeps Repository ID and Full Name.Waiting for approval

Build state

StepWhereStatus
Central Settings GitHub tab, GitHub Connection DocTypeCentralDone
Central Settings "Create GitHub App" button (manifest flow)CentralBuilt, not yet run
central/integrations/github.py and central/api/github.pyCentralDone
Connection attempt (Redis, 15 minutes), PKCE, callback, completeCentralTested live
repository_token (one repository, contents: read)CentralTested live
Webhook with HMAC checkCentralTested live
Central connect page in the dashboardCentralTested live
CentralClient GitHub methods and one token resolver for clone, fetch, branches and app lookupPilotTested live
Admin API: connection-attempts, connection, repositories, disconnectPilotTested live
settings/Git.vue: PAT only, or PAT plus Connect through Frappe CentralPilotTested live
Disconnect from Pilot (disables the Central grant, clears the host)BothTested live
Minimal tests: Pilot 4 new (182 pass in the git and integration suites), Central 3 new (pass on central-test.local)BothDone
Docs: Pilot docs/admin-api.md, Central spec/INTEGRATIONS.mdBothDone

Live checks passed

Screens

Pilot Git settings with the recommended Connect GitHub through Frappe Central card and a link to use a personal access token instead
Pilot on a Central-managed host: Central is the recommended option. A host without Central shows only the token form.
Central page where the user selects repositories to grant to the server
Central: select repositories. Only repositories where the user is an admin can be selected.
Pilot Git settings showing the Frappe Central connection and the granted repository
Pilot: connected through Frappe Central.
Pilot import app dialog with the granted private repository and its branch
Pilot: import an app from a granted private repository.

Open points for review

Assumptions