PostDeploymentsByName @Summary create deployment by webhook name @Description Create deployment pipeline by webhook name. @Description example1: {"repo_url":"devlake","commit_sha":"015e3d3b480e417aede5a1293bd61de9b0fd051d","start_time":"2020-01-01T12:00:00+00:00","end_time":"2020-01-01T12:59:59
(input *plugin.ApiResourceInput)
| 105 | // @Failure 500 {string} errcode.Error "Internal Error" |
| 106 | // @Router /plugins/webhook/connections/by-name/:connectionName/deployments [POST] |
| 107 | func PostDeploymentsByName(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) { |
| 108 | connection := &models.WebhookConnection{} |
| 109 | err := connectionHelper.FirstByName(connection, input.Params) |
| 110 | |
| 111 | return postDeployments(input, connection, err) |
| 112 | } |
| 113 | |
| 114 | // PostDeploymentsByProjectName |
| 115 | // @Summary create deployment by project name |
nothing calls this directly
no test coverage detected