Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,12 @@ export const CreateDialog = ({ open, onCancel, onSubmitAfter }: Props) => {
}'`,
closeIssuesEndpoint: `curl ${prefix}${res.closeIssuesEndpoint} -X 'POST' -H 'Authorization: Bearer ${res.apiKey}'`,
postDeploymentsCurl: `curl ${prefix}${res.postPipelineDeployTaskEndpoint} -X 'POST' -H 'Authorization: Bearer ${res.apiKey}' -d '{
"deployment_commits":[
{
"commit_sha":"the sha of deployment commit1",
"repo_url":"the repo URL of the deployment commit"
}
],
"start_time":"Optional, eg. 2020-01-01T12:00:00+00:00"
}'`,
"pipeline_id": "Required. This will be the unique id of the deployment",
"repo_url":"e.g. GitHub - apache/incubator-devlake: Apache DevLake is an open-source dev data platform to ingest, ana",
"display_title":"optional-custom-deploy-display-title",
"commit_sha":"e.g. 015e3d3b480e417aede5a1293bd61de9b0fd051d",
"start_time":"Optional, e.g. 2020-01-01T12:00:00+00:00"
}'`,
apiKey: res.apiKey,
});
onSubmitAfter?.(res.id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ const transformURI = (prefix: string, webhook: IWebhook, apiKey: string) => {
postDeploymentsCurl: `curl ${prefix}${webhook.postPipelineDeployTaskEndpoint} -X 'POST' -H 'Authorization: Bearer ${
apiKey ?? '{API_KEY}'
}' -d '{
"deployment_commits":[
{
"commit_sha":"the sha of deployment commit1",
"repo_url":"the repo URL of the deployment commit"
}
],
"start_time":"Optional, eg. 2020-01-01T12:00:00+00:00"
}'`,
"pipeline_id": "Required. This will be the unique id of the deployment",
"repo_url":"e.g. GitHub - apache/incubator-devlake: Apache DevLake is an open-source dev data platform to ingest, ana",
"display_title":"optional-custom-deploy-display-title",
"commit_sha":"e.g. 015e3d3b480e417aede5a1293bd61de9b0fd051d",
"start_time":"Optional, e.g. 2020-01-01T12:00:00+00:00"
}'`,
};
};

Expand Down