MCPcopy
hub / github.com/eth0izzle/shhgit / GetRepository

Function GetRepository

core/github.go:137–147  ·  view source on GitHub ↗
(session *Session, id int64)

Source from the content-addressed store, hash-verified

135}
136
137func GetRepository(session *Session, id int64) *github.Repository {
138 client := session.GetClient()
139 repo, resp, _ := client.Repositories.GetByID(session.Context, id)
140
141 if resp.Rate.Remaining <= 1 {
142 session.Log.Warn("Token %s rate limited. Reset at %s", client.Token, resp.Rate.Reset)
143 client.RateLimitedUntil = time.Until(resp.Rate.Reset.Time)
144 }
145
146 return repo
147}

Callers 1

ProcessRepositoriesFunction · 0.92

Calls 2

GetClientMethod · 0.80
WarnMethod · 0.80

Tested by

no test coverage detected