(token, apiURL string)
| 157 | } |
| 158 | |
| 159 | func newClient(token, apiURL string) *github.Client { |
| 160 | client, err := github.NewClient(github.WithAuthToken(token), github.WithEnterpriseURLs(apiURL, apiURL)) |
| 161 | if err != nil { |
| 162 | log.Fatalf("Error creating GitHub client: %v", err) |
| 163 | } |
| 164 | return client |
| 165 | } |
| 166 | |
| 167 | func requireEnv(name string) string { |
| 168 | val := os.Getenv(name) |
no test coverage detected
searching dependent graphs…