Skip to content

Commit a018b45

Browse files
author
Gustav Paul
committed
scm/driver/github: convert InsecureSSL into SkipVerify
1 parent f1d9c57 commit a018b45

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ require (
44
github.com/google/go-cmp v0.2.0
55
github.com/h2non/gock v1.0.9
66
)
7+
8+
go 1.13

scm/driver/github/repo.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,11 @@ func convertHookList(from []*hook) []*scm.Hook {
203203

204204
func convertHook(from *hook) *scm.Hook {
205205
return &scm.Hook{
206-
ID: strconv.Itoa(from.ID),
207-
Active: from.Active,
208-
Target: from.Config.URL,
209-
Events: from.Events,
206+
ID: strconv.Itoa(from.ID),
207+
Active: from.Active,
208+
Target: from.Config.URL,
209+
Events: from.Events,
210+
SkipVerify: from.Config.InsecureSSL == "1",
210211
}
211212
}
212213

0 commit comments

Comments
 (0)