Startrekzky opened a new issue, #6262: URL: https://github.com/apache/incubator-devlake/issues/6262
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar feature requirement. ### Use case This originates from the discussion: https://github.com/apache/incubator-devlake/discussions/6162 ### Description ## Solution The current webhook payload looks like: ``` curl http://localhost:8080/plugins/webhook/1/deployments -X 'POST' -d '{ "pipeline_id": "optional-pipeline-id", "environment":"PRODUCTION", "repo_url":"https://github.com/apache/incubator-devlake/", "repo_id": "optional-repo-id", "ref_name": "optional-release-v0.17", "commit_sha":"015e3d3b480e417aede5a1293bd61de9b0fd051d", "create_time":"2020-01-01T11:00:00+00:00", "start_time":"2020-01-01T12:00:00+00:00", "end_time":"2020-01-02T13:00:00+00:00", "result": "FAILURE" }' ``` In the future, we should support the following payload: ``` curl http://localhost:8080/plugins/webhook/1/deployments -X 'POST' -d '{ "pipeline_id": "optional-pipeline-id", "deploymentCommits":[ { "repo_url":"repo-1", "environment":"PRODUCTION", "ref_name": "optional-release-v0.17", "commit_sha":"c1" }, { "repo_url":"repo-2", "environment":"PRODUCTION", "ref_name": "optional-release-v0.17", "commit_sha":"c2" } ] "create_time":"2020-01-01T11:00:00+00:00", "start_time":"2020-01-01T12:00:00+00:00", "end_time":"2020-01-02T13:00:00+00:00", "result": "FAILURE" }' ``` ## To Do - [ ] [BE] Support the new payload - [ ] [Doc] Update the doc: https://devlake.apache.org/docs/Plugins/webhook#deployment - [ ] [Doc] Update the doc: https://devlake.apache.org/docs/Configuration/webhook ### Related issues https://github.com/apache/incubator-devlake/discussions/6162 ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
