You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "Startrekzky (via GitHub)" <gi...@apache.org> on 2023/10/17 12:58:16 UTC
[I] [Feature][Webhook] Allow deployment webhook to push deployments to multiple repos in one request [incubator-devlake]
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: dev-unsubscribe@devlake.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature][Webhook] Allow deployment webhook to push deployments to multiple repos in one request [incubator-devlake]
Posted by "Startrekzky (via GitHub)" <gi...@apache.org>.
Startrekzky closed issue #6262: [Feature][Webhook] Allow deployment webhook to push deployments to multiple repos in one request
URL: https://github.com/apache/incubator-devlake/issues/6262
--
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: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org