likyh opened a new issue, #3023: URL: https://github.com/apache/incubator-devlake/issues/3023
### 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. ### Description ### The `webhook` plugin would provide the following APIs - Define `connection` struct as `(id, name)`, with DYNAMIC GENERATED `issue_endpoint, cicd_pipeline_endpoints` - `POST /plugins/webhook/connections` creates `webhook connection` - `GET /plugins/webhook/connections` get all webhook connections - `GET /plugins/webhook/connections/:connection_id` get detail of the webhook connection - `PATCH /plugins/webhook/connections/:connection_id` update webhook connection - `DELETE /plugins/webhook/connections/:connection_id` delete the webhook connection - `POST /plugins/webhook/:connection_id/cicd_pipeline` creates `cicd_pipline` and `cicd_pipeline_repos` if not existed (ci/cd webhook) - `POST /plugins/webhook/:connection_id/issues` creates `issues` (with `type=INCIDENT` normally) and `board` if not existed (incident webhook) - `POST /plugins/webhook/:connection_id/issues/:id/close` close specified `issue` - Add swagger document for webhook plugin ### Use case _No response_ ### Related issues _No response_ ### 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]
