We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e8d26 commit de0a222Copy full SHA for de0a222
ee/cli/pkg/vcs/providers.go
@@ -37,6 +37,12 @@ func (v VCSProviderAdvanced) GetPrService(vcsSpec spec.VcsSpec) (ci.PullRequestS
37
38
func (v VCSProviderAdvanced) GetOrgService(vcsSpec spec.VcsSpec) (ci.OrgService, error) {
39
switch vcsSpec.VcsType {
40
+ case "github":
41
+ token := os.Getenv("GITHUB_TOKEN")
42
+ if token == "" {
43
+ return nil, fmt.Errorf("failed to get github service: GITHUB_TOKEN not specified")
44
+ }
45
+ return github2.GithubServiceProviderAdvanced{}.NewService(token, vcsSpec.RepoName, vcsSpec.RepoOwner)
46
case "gitlab":
47
token := os.Getenv("GITLAB_TOKEN")
48
if token == "" {
0 commit comments