You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "richardinemi (via GitHub)" <gi...@apache.org> on 2025/06/23 07:55:14 UTC

[I] [Question][Webhook] Inject incident on devlake [incubator-devlake]

richardinemi opened a new issue, #8476:
URL: https://github.com/apache/incubator-devlake/issues/8476

   <!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at
   
       http://www.apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
   -->
   
   ## Question
   How can we inject an incident to devlake by using webhook to populate « incidents » table? Because at this time, i see only the possibility to inject an issue but not for an incident.


-- 
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] [Question][Webhook] Inject incident on devlake [incubator-devlake]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #8476:
URL: https://github.com/apache/incubator-devlake/issues/8476#issuecomment-2995349833

   <!-- Answer -->
   DevLake doesn't currently support injecting incidents directly via webhook. However, you can inject an issue using the webhook endpoint, and if the issue is marked as an incident (for example, by setting the `type` field to a value recognized as an incident), DevLake will automatically create the corresponding incident records in the incidents table. This is handled internally by the `IsIncident` method and the `saveIncidentRelatedRecordsFromIssue` function in the webhook plugin code. There is no dedicated webhook endpoint for incidents at this time, and this is the intended workaround for now [reference](https://github.com/apache/incubator-devlake/blob/fa80e48aed7b2ca1d979358a3a8075fe4b98c371/backend/plugins/webhook/api/issues.go).
   
   If webhook-based injection doesn't fit your needs, you can also use the Customize Plugin to import incident-related data via CSV [reference](https://github.com/apache/incubator-devlake/issues/8446).
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[!
 [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8476)


-- 
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


Re: [I] [Question][Webhook] Inject incident on devlake [incubator-devlake]

Posted by "richardinemi (via GitHub)" <gi...@apache.org>.
richardinemi commented on issue #8476:
URL: https://github.com/apache/incubator-devlake/issues/8476#issuecomment-2996526079

   That is clear,
   Thank you.


-- 
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


Re: [I] [Question][Webhook] Inject incident on devlake [incubator-devlake]

Posted by "richardinemi (via GitHub)" <gi...@apache.org>.
richardinemi closed issue #8476: [Question][Webhook] Inject incident on devlake
URL: https://github.com/apache/incubator-devlake/issues/8476


-- 
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