fix github webhook Content type support
Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
This commit is contained in:
@@ -782,6 +782,7 @@ The last one is encrypted info, such as the password of the username-password ty
|
|||||||
|
|
||||||
webservice.Route(webservice.POST("/webhook/github").
|
webservice.Route(webservice.POST("/webhook/github").
|
||||||
To(devopsapi.GithubWebhook).
|
To(devopsapi.GithubWebhook).
|
||||||
|
Consumes("application/x-www-form-urlencoded", "application/json").
|
||||||
Metadata(restfulspec.KeyOpenAPITags, []string{constants.DevOpsWebhookTag}).
|
Metadata(restfulspec.KeyOpenAPITags, []string{constants.DevOpsWebhookTag}).
|
||||||
Doc("Get commit notification. Github webhook will request here."))
|
Doc("Get commit notification. Github webhook will request here."))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user