()
| 17 | ) |
| 18 | |
| 19 | func 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 | |
| 30 | func main() { |
| 31 | migrations, err := fetchAllUserMigrations() |
no test coverage detected
searching dependent graphs…