fix webhook url (#34186)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit aada0370e7d72a591d58788f6db76bdbc3dddbb7)
This commit is contained in:
parent
9144726e4f
commit
82dd00873d
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ func TestWebhook_EventsArray(t *testing.T) {
|
||||||
func TestCreateWebhook(t *testing.T) {
|
func TestCreateWebhook(t *testing.T) {
|
||||||
hook := &Webhook{
|
hook := &Webhook{
|
||||||
RepoID: 3,
|
RepoID: 3,
|
||||||
URL: "www.example.com/unit_test",
|
URL: "https://www.example.com/unit_test",
|
||||||
ContentType: ContentTypeJSON,
|
ContentType: ContentTypeJSON,
|
||||||
Events: `{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}`,
|
Events: `{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}`,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue