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

Method getRepo

api/graphql/resolvers/mutation.go:21–27  ·  view source on GitHub ↗
(ref *string)

Source from the content-addressed store, hash-verified

19}
20
21func (r mutationResolver) getRepo(ref *string) (*cache.RepoCache, error) {
22 if ref != nil {
23 return r.cache.ResolveRepo(*ref)
24 }
25
26 return r.cache.DefaultRepo()
27}
28
29func (r mutationResolver) getBug(repoRef *string, bugPrefix string) (*cache.RepoCache, *cache.BugCache, error) {
30 repo, err := r.getRepo(repoRef)

Callers 3

getBugMethod · 0.95
BugCreateMethod · 0.95
BugEditCommentMethod · 0.95

Calls 2

ResolveRepoMethod · 0.80
DefaultRepoMethod · 0.80

Tested by

no test coverage detected