MCPcopy Index your code
hub / github.com/git-bug/git-bug / getClientForIdentity

Method getClientForIdentity

bridge/github/export.go:121–128  ·  view source on GitHub ↗

getClientForIdentity return a githubv4 API client configured with the access token of the given identity.

(userId entity.Id)

Source from the content-addressed store, hash-verified

119
120// getClientForIdentity return a githubv4 API client configured with the access token of the given identity.
121func (ge *githubExporter) getClientForIdentity(userId entity.Id) (*rateLimitHandlerClient, error) {
122 client, ok := ge.identityClient[userId]
123 if ok {
124 return client, nil
125 }
126
127 return nil, ErrMissingIdentityToken
128}
129
130// ExportAll export all event made by the current user to Github
131func (ge *githubExporter) ExportAll(ctx context.Context, repo *cache.RepoCache, since time.Time) (<-chan core.ExportResult, error) {

Callers 1

exportBugMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected