MCPcopy Index your code
hub / github.com/apache/devlake / PostDeploymentsByName

Function PostDeploymentsByName

backend/plugins/webhook/api/deployments.go:107–112  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

105// @Failure 500 {string} errcode.Error "Internal Error"
106// @Router /plugins/webhook/connections/by-name/:connectionName/deployments [POST]
107func 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

Callers

nothing calls this directly

Calls 2

postDeploymentsFunction · 0.85
FirstByNameMethod · 0.80

Tested by

no test coverage detected