PostDeployments @Summary create deployment by webhook @Description Create deployment pipeline by webhook. @Description example1: {"repo_url":"devlake","commit_sha":"015e3d3b480e417aede5a1293bd61de9b0fd051d","start_time":"2020-01-01T12:00:00+00:00","end_time":"2020-01-01T12:59:59+00:00","environ
(input *plugin.ApiResourceInput)
| 85 | // @Failure 500 {string} errcode.Error "Internal Error" |
| 86 | // @Router /plugins/webhook/connections/:connectionId/deployments [POST] |
| 87 | func PostDeployments(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) { |
| 88 | connection := &models.WebhookConnection{} |
| 89 | err := connectionHelper.First(connection, input.Params) |
| 90 | |
| 91 | return postDeployments(input, connection, err) |
| 92 | } |
| 93 | |
| 94 | // PostDeploymentsByName |
| 95 | // @Summary create deployment by webhook name |
nothing calls this directly
no test coverage detected