MCPcopy Index your code
hub / github.com/google/go-github / fetchAllUserMigrations

Function fetchAllUserMigrations

example/migrations/main.go:19–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17)
18
19func fetchAllUserMigrations() ([]*github.UserMigration, error) {
20 ctx := context.Background()
21 client, err := github.NewClient(github.WithAuthToken("<GITHUB_AUTH_TOKEN>"))
22 if err != nil {
23 return nil, err
24 }
25
26 migrations, _, err := client.Migrations.ListUserMigrations(ctx, &github.ListOptions{Page: 1})
27 return migrations, err
28}
29
30func main() {
31 migrations, err := fetchAllUserMigrations()

Callers 1

mainFunction · 0.85

Calls 3

NewClientFunction · 0.92
WithAuthTokenFunction · 0.92
ListUserMigrationsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…