Skip to content

Commit 046e687

Browse files
author
chhsia0
committed
Supporetd skip_cert_verification for bitbucket webhook registration.
1 parent 5208793 commit 046e687

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scm/driver/bitbucket/repo.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ type hook struct {
5858
}
5959

6060
type hookInput struct {
61-
Description string `json:"description"`
62-
URL string `json:"url"`
63-
Active bool `json:"active"`
64-
Events []string `json:"events"`
61+
Description string `json:"description"`
62+
URL string `json:"url"`
63+
SkipCertVerification bool `json:"skip_cert_verification"`
64+
Active bool `json:"active"`
65+
Events []string `json:"events"`
6566
}
6667

6768
type repositoryService struct {
@@ -135,6 +136,7 @@ func (s *repositoryService) CreateHook(ctx context.Context, repo string, input *
135136
path := fmt.Sprintf("2.0/repositories/%s/hooks", repo)
136137
in := new(hookInput)
137138
in.URL = target.String()
139+
in.SkipCertVerification = input.SkipVerify
138140
in.Active = true
139141
in.Description = input.Name
140142
in.Events = append(

0 commit comments

Comments
 (0)