MCPcopy Create free account
hub / github.com/cloudbase/garm / getGithubClient

Function getGithubClient

test/integration/gh_cleanup/main.go:184–188  ·  view source on GitHub ↗
(oauthToken string)

Source from the content-addressed store, hash-verified

182}
183
184func getGithubClient(oauthToken string) *github.Client {
185 ts := oauth2.StaticTokenSource(&oauth2.Token{AccessToken: oauthToken})
186 tc := oauth2.NewClient(context.Background(), ts)
187 return github.NewClient(tc)
188}

Callers 9

GhOrgRunnersCleanupFunction · 0.70
GhRepoRunnersCleanupFunction · 0.70
GhOrgWebhookCleanupFunction · 0.70
GhRepoWebhookCleanupFunction · 0.70
getGhOrgWebhookFunction · 0.70
getGhRepoWebhookFunction · 0.70
GhOrgRunnersCleanupMethod · 0.50
TriggerWorkflowMethod · 0.50
getGhOrgWebhookFunction · 0.50

Calls

no outgoing calls

Tested by 3

GhOrgRunnersCleanupMethod · 0.40
TriggerWorkflowMethod · 0.40
getGhOrgWebhookFunction · 0.40