MCPcopy Index your code
hub / github.com/rilldata/rill / InstallationTokenForOrg

Method InstallationTokenForOrg

admin/github.go:150–157  ·  view source on GitHub ↗
(ctx context.Context, org string)

Source from the content-addressed store, hash-verified

148}
149
150func (g *githubClient) InstallationTokenForOrg(ctx context.Context, org string) (string, time.Time, error) {
151 installation, _, err := g.appClient.Apps.FindOrganizationInstallation(ctx, org)
152 if err != nil {
153 return "", time.Time{}, err
154 }
155 client := g.InstallationClient(*installation.ID, nil)
156 return g.token(ctx, client)
157}
158
159func (g *githubClient) DeleteBranch(ctx context.Context, installationID, repoID int64, remote, branch string) error {
160 client := g.InstallationClient(installationID, &repoID)

Callers

nothing calls this directly

Calls 2

InstallationClientMethod · 0.95
tokenMethod · 0.95

Tested by

no test coverage detected