(ctx context.Context, org string)
| 148 | } |
| 149 | |
| 150 | func (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 | |
| 159 | func (g *githubClient) DeleteBranch(ctx context.Context, installationID, repoID int64, remote, branch string) error { |
| 160 | client := g.InstallationClient(installationID, &repoID) |
nothing calls this directly
no test coverage detected