MCPcopy Index your code
hub / github.com/ChappIO/git-backup / getStarredRepos

Method getStarredRepos

github.go:204–219  ·  view source on GitHub ↗
(page int)

Source from the content-addressed store, hash-verified

202}
203
204func (c *GithubConfig) getStarredRepos(page int) ([]*github.Repository, *github.Response, error) {
205 starred, response, err := c.client.Activity.ListStarred(context.Background(), "", &github.ActivityListStarredOptions{
206 ListOptions: github.ListOptions{
207 Page: page,
208 PerPage: 100,
209 },
210 })
211 if err != nil {
212 return nil, response, err
213 }
214 repos := make([]*github.Repository, len(starred))
215 for i := range repos {
216 repos[i] = starred[i].Repository
217 }
218 return repos, response, err
219}

Callers 1

getAllReposMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected