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

Function PostDeployments

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

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)

Source from the content-addressed store, hash-verified

85// @Failure 500 {string} errcode.Error "Internal Error"
86// @Router /plugins/webhook/connections/:connectionId/deployments [POST]
87func 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

Callers

nothing calls this directly

Calls 2

postDeploymentsFunction · 0.85
FirstMethod · 0.65

Tested by

no test coverage detected