Skip to content

Commit f95dce2

Browse files
jpraetlafriks
andauthored
exclude authored PRs from Review Requested filter (#14368)
Co-authored-by: Lauris BH <[email protected]>
1 parent 8e39157 commit f95dce2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/issue.go

+1
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,7 @@ func applyMentionedCondition(sess *xorm.Session, mentionedID int64) *xorm.Sessio
12541254

12551255
func applyReviewRequestedCondition(sess *xorm.Session, reviewRequestedID int64) *xorm.Session {
12561256
return sess.Join("INNER", []string{"review", "r"}, "issue.id = r.issue_id").
1257+
And("issue.poster_id <> ?", reviewRequestedID).
12571258
And("r.type = ?", ReviewTypeRequest).
12581259
And("r.reviewer_id = ? and r.id in (select max(id) from review where issue_id = r.issue_id and reviewer_id = r.reviewer_id and type in (?, ?, ?))"+
12591260
" or r.reviewer_team_id in (select team_id from team_user where uid = ?)",

0 commit comments

Comments
 (0)