1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 02:38:35 +00:00

Bug fixes and unit tests for models/webhook (#751)

This commit is contained in:
Ethan Koenig
2017-01-25 05:37:35 -05:00
committed by Lunny Xiao
parent a6832c234d
commit 0934d1b1ea
5 changed files with 312 additions and 20 deletions

View File

@@ -0,0 +1,5 @@
-
id: 1
repo_id: 1
hook_id: 1
uuid: uuid1

View File

@@ -0,0 +1,24 @@
-
id: 1
repo_id: 1
url: www.example.com/url1
content_type: 1 # json
events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}'
is_active: true
-
id: 2
repo_id: 1
url: www.example.com/url2
content_type: 1 # json
events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}'
is_active: false
-
id: 3
org_id: 3
repo_id: 3
url: www.example.com/url3
content_type: 1 # json
events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}'
is_active: true