Skip to content

Commit 8f8609e

Browse files
fix: lowercase configuration parameters
1 parent 117a7cc commit 8f8609e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pkg/provider/github.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type GitHubRepository struct {
2222
}
2323

2424
func (repo *GitHubRepository) Init(config map[string]string) error {
25-
gheHost := config["githubEnterpriseHost"]
25+
gheHost := config["github_enterprise_host"]
2626
if gheHost == "" {
2727
gheHost = os.Getenv("GITHUB_ENTERPRISE_HOST")
2828
}

pkg/provider/github_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ func TestNewGithubRepository(t *testing.T) {
2424

2525
repo = &GitHubRepository{}
2626
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",
3030
})
3131
require.NoError(err)
3232

3333
repo = &GitHubRepository{}
3434
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",
3838
})
3939
require.NoError(err)
4040
require.Equal("github.enterprise", repo.client.BaseURL.Host)

0 commit comments

Comments
 (0)