File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ type GitHubRepository struct {
22
22
}
23
23
24
24
func (repo * GitHubRepository ) Init (config map [string ]string ) error {
25
- gheHost := config ["githubEnterpriseHost " ]
25
+ gheHost := config ["github_enterprise_host " ]
26
26
if gheHost == "" {
27
27
gheHost = os .Getenv ("GITHUB_ENTERPRISE_HOST" )
28
28
}
Original file line number Diff line number Diff line change @@ -24,17 +24,17 @@ func TestNewGithubRepository(t *testing.T) {
24
24
25
25
repo = & GitHubRepository {}
26
26
err = repo .Init (map [string ]string {
27
- "githubEnterpriseHost " : "" ,
28
- "slug" : "owner/test-repo" ,
29
- "token" : "token" ,
27
+ "github_enterprise_host " : "" ,
28
+ "slug" : "owner/test-repo" ,
29
+ "token" : "token" ,
30
30
})
31
31
require .NoError (err )
32
32
33
33
repo = & GitHubRepository {}
34
34
err = repo .Init (map [string ]string {
35
- "githubEnterpriseHost " : "github.enterprise" ,
36
- "slug" : "owner/test-repo" ,
37
- "token" : "token" ,
35
+ "github_enterprise_host " : "github.enterprise" ,
36
+ "slug" : "owner/test-repo" ,
37
+ "token" : "token" ,
38
38
})
39
39
require .NoError (err )
40
40
require .Equal ("github.enterprise" , repo .client .BaseURL .Host )
You can’t perform that action at this time.
0 commit comments