Skip to content

Commit aada037

Browse files
hiifongwxiaoguang
andauthored
fix webhook url (#34186)
Co-authored-by: wxiaoguang <[email protected]>
1 parent f4196a8 commit aada037

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

models/fixtures/webhook.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
-
22
id: 1
33
repo_id: 1
4-
url: www.example.com/url1
4+
url: https://www.example.com/url1
55
content_type: 1 # json
66
events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}'
77
is_active: true
88

99
-
1010
id: 2
1111
repo_id: 1
12-
url: www.example.com/url2
12+
url: https://www.example.com/url2
1313
content_type: 1 # json
1414
events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}'
1515
is_active: false
@@ -18,15 +18,15 @@
1818
id: 3
1919
owner_id: 3
2020
repo_id: 3
21-
url: www.example.com/url3
21+
url: https://www.example.com/url3
2222
content_type: 1 # json
2323
events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}'
2424
is_active: true
2525

2626
-
2727
id: 4
2828
repo_id: 2
29-
url: www.example.com/url4
29+
url: https://www.example.com/url4
3030
content_type: 1 # json
3131
events: '{"push_only":true,"branch_filter":"{master,feature*}"}'
3232
is_active: true
@@ -35,7 +35,7 @@
3535
id: 5
3636
repo_id: 0
3737
owner_id: 0
38-
url: www.example.com/url5
38+
url: https://www.example.com/url5
3939
content_type: 1 # json
4040
events: '{"push_only":true,"branch_filter":"{master,feature*}"}'
4141
is_active: true
@@ -45,7 +45,7 @@
4545
id: 6
4646
repo_id: 0
4747
owner_id: 0
48-
url: www.example.com/url6
48+
url: https://www.example.com/url6
4949
content_type: 1 # json
5050
events: '{"push_only":true,"branch_filter":"{master,feature*}"}'
5151
is_active: true

models/webhook/webhook_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func TestWebhook_EventsArray(t *testing.T) {
9090
func TestCreateWebhook(t *testing.T) {
9191
hook := &Webhook{
9292
RepoID: 3,
93-
URL: "www.example.com/unit_test",
93+
URL: "https://www.example.com/unit_test",
9494
ContentType: ContentTypeJSON,
9595
Events: `{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}`,
9696
}

0 commit comments

Comments
 (0)