(oAuthToken, apihttpURL string)
| 30 | } |
| 31 | |
| 32 | func newOAuthClient(oAuthToken, apihttpURL string) (*gitlab.Client, error) { |
| 33 | gitlabClient := gitlab.NewOAuthClient(nil, oAuthToken) |
| 34 | if err := gitlabClient.SetBaseURL(apihttpURL); err != nil { |
| 35 | return nil, err |
| 36 | } |
| 37 | return gitlabClient, nil |
| 38 | } |
| 39 | |
| 40 | func newGitlabClient() (*gitlab.Client, error) { |
| 41 | switch { |