You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ly...@apache.org on 2024/07/29 06:18:44 UTC
(incubator-devlake) 05/07: fix(incident): fix method `IsIncident`
This is an automated email from the ASF dual-hosted git repository.
lynwee pushed a commit to branch cp10
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit e92af0a9a885e99b4dff9e4cabb7315ead3b2146
Author: d4x1 <15...@qq.com>
AuthorDate: Fri Jun 21 19:08:05 2024 +0800
fix(incident): fix method `IsIncident`
---
backend/core/models/domainlayer/ticket/issue.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/core/models/domainlayer/ticket/issue.go b/backend/core/models/domainlayer/ticket/issue.go
index ec88fdb13..816571a4a 100644
--- a/backend/core/models/domainlayer/ticket/issue.go
+++ b/backend/core/models/domainlayer/ticket/issue.go
@@ -107,7 +107,7 @@ func GetStatus(rule *StatusRule, input interface{}) string {
}
func (issue Issue) IsIncident() bool {
- return issue.Type != INCIDENT
+ return issue.Type == INCIDENT
}
func (issue Issue) ToIncidentAssignee() (*IncidentAssignee, error) {