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

Method getIdentityClient

bridge/gitlab/export.go:97–104  ·  view source on GitHub ↗

getIdentityClient return a gitlab v4 API client configured with the access token of the given identity.

(userId entity.Id)

Source from the content-addressed store, hash-verified

95
96// getIdentityClient return a gitlab v4 API client configured with the access token of the given identity.
97func (ge *gitlabExporter) getIdentityClient(userId entity.Id) (*gitlab.Client, error) {
98 client, ok := ge.identityClient[userId]
99 if ok {
100 return client, nil
101 }
102
103 return nil, ErrMissingIdentityToken
104}
105
106// ExportAll export all event made by the current user to Gitlab
107func (ge *gitlabExporter) 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