Skip to content

Commit 9ca42b7

Browse files
committed
fix: Enable blank type for backwards compatibility
1 parent a11315b commit 9ca42b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/plugins/dora/tasks/change_lead_time_calculator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func getFirstReview(prId string, prCreator string, db dal.Dal) (*code.PullReques
186186
// Define the SQL clauses for the database query
187187
commentClauses := []dal.Clause{
188188
dal.From(&code.PullRequestComment{}), // Select from the "pull_request_comments" table
189-
dal.Where("pull_request_id = ? and account_id != ? and type = ?", prId, prCreator, code.REVIEW), // Filter by the PR ID and exclude comments from the PR creator
189+
dal.Where("pull_request_id = ? and account_id != ? and (type = ? or type = '')", prId, prCreator, code.REVIEW), // Filter by the PR ID and exclude comments from the PR creator
190190
dal.Orderby("created_date ASC"), // Order by the created date of the review comments (ascending)
191191
}
192192

0 commit comments

Comments
 (0)