61 lines
3.9 KiB
Plaintext
61 lines
3.9 KiB
Plaintext
url: string
|
|
|
|
http_method: string
|
|
content_type: number 1表示 application/json, 2表示application/x-www-form-urlencoded
|
|
|
|
secret: string 表示密码
|
|
|
|
events: {"push_only"=>false,
|
|
"send_everything"=>false,
|
|
"choose_events"=>true,
|
|
"branch_filter"=>"*",
|
|
"events"=>{"create"=>true, "delete"=>true, "fork"=>true, "issues"=>true, "issue_comment"=>true, "push"=>true, "pull_request"=>true, "repository"=>true, "release"=>false}
|
|
}
|
|
is_active: true/false 表示是否激活
|
|
|
|
|
|
{
|
|
"active": true,
|
|
"branch_filter": "*",
|
|
"config": {
|
|
"url": "https://testforgeplus.trustie.net/projects/5988/version",
|
|
"http_method": "POST",
|
|
"content_type": 1,
|
|
"push_only": true,
|
|
"send_everything": false,
|
|
"choose_events": false
|
|
},
|
|
"events": [],
|
|
"type": "gitea"
|
|
},
|
|
|
|
{
|
|
"active": true,
|
|
"type": "gitea",
|
|
"branch_filter": "*",
|
|
"config": {
|
|
"url": "https://testforgeplus.trustie.net/projects/5988/version",
|
|
"http_method": "POST",
|
|
"content_type": 1,
|
|
"push_only": true,
|
|
"send_everything": false,
|
|
"choose_events": false
|
|
},
|
|
"events": [],
|
|
|
|
|
|
|
|
(`repo_id`,`org_id`,`url`,`signature`,`http_method`,`content_type`,`secret`,`events`,`is_ssl`,`is_active`,`hook_task_type`,`meta`,`last_status`,`created_unix`,`updated_unix`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) []interface {}{5925, 0, "https://testforgeplus.trustie.net/api/watchers/unfollow.json?target_type=user&id=jzyhywxz", "", "POST", 1, "", "{\"push_only\":true,\"send_everything\":false,\"choose_events\":false,\"branch_filter\":\"master\",\"events\":{\"create\":false,\"delete\":false,\"fork\":false,\"issues\":false,\"issue_comment\":false,\"push\":false,\"pull_request\":false,\"repository\":false,\"release\":false}}", false, true, 3, "", 0, 1589852971, 1589852971}
|
|
|
|
|
|
`webhook` (`repo_id`,`org_id`,`url`,`signature`,`http_method`,`content_type`,`secret`,`events`,`is_ssl`,`is_active`,`hook_task_type`,`meta`,`last_status`,`created_unix`,`updated_unix`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) []interface {}{5925, 0, "https://testforgeplus.trustie.net/api/watchers/unfollow.json?target_type=user&id=jzyhywxz", "", "POST", 1, "12345", "{\"push_only\":false,\"send_everything\":true,\"choose_events\":false,\"branch_filter\":\"*\",\"events\":{\"create\":false,\"delete\":false,\"fork\":false,\"issues\":false,\"issue_comment\":false,\"push\":false,\"pull_request\":false,\"repository\":false,\"release\":false}}", false, true, 3, "", 0, 1589853967, 1589853967} - took: 2.015129ms
|
|
|
|
`webhook` (`repo_id`,`org_id`,`url`,`signature`,`http_method`,`content_type`,`secret`,`events`,`is_ssl`,`is_active`,`hook_task_type`,`meta`,`last_status`,`created_unix`,`updated_unix`)
|
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
[]interface {}
|
|
{5925, 0, "https://testforgeplus.trustie.net/projects/5988/watch_users", "", "POST", 2, "23456", "{\"push_only\":false,\"send_everything\":false,\"choose_events\":true,\"branch_filter\":\"*\",\"events\":{\"create\":true,\"delete\":true,\"fork\":true,\"issues\":true,\"issue_comment\":true,\"push\":true,\"pull_request\":true,\"repository\":true,\"release\":false}}", false, true, 3, "", 0, 1589854788, 1589854788}
|
|
|
|
- took: 1.421557ms
|
|
|
|
|
|
(`repo_id`,`org_id`,`url`,`signature`,`http_method`,`content_type`,`secret`,`events`,`is_ssl`,`is_active`,`hook_task_type`,`meta`,`last_status`,`created_unix`,`updated_unix`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) []interface {}{5925, 0, "https://testforgeplus.trustie.net/projects/5988/watch_users", "", "", 1, "", "{\"push_only\":false,\"send_everything\":true,\"choose_events\":false,\"branch_filter\":\"*\",\"events\":{\"create\":false,\"delete\":false,\"fork\":false,\"issues\":false,\"issue_comment\":false,\"push\":false,\"pull_request\":false,\"repository\":false,\"release\":false}}", false, true, 5, "", 0, 1589855089, 1589855089} - took: 2.38026ms |