mirror of
https://github.com/go-gitea/gitea.git
synced 2026-01-11 07:14:54 +01:00
as title now
This commit is contained in:
parent
e5729e1ce5
commit
2bdf87f180
@ -376,12 +376,15 @@ func (pr *PullRequest) getReviewedByLines(ctx context.Context, writer io.Writer)
|
||||
}
|
||||
|
||||
// Note: This doesn't page as we only expect a very limited number of reviews
|
||||
reviews, err := FindLatestReviews(ctx, FindReviewOptions{
|
||||
opts := FindReviewOptions{
|
||||
Types: []ReviewType{ReviewTypeApprove},
|
||||
IssueID: pr.IssueID,
|
||||
OfficialOnly: setting.Repository.PullRequest.DefaultMergeMessageOfficialApproversOnly,
|
||||
Dismissed: optional.Some(false),
|
||||
})
|
||||
}
|
||||
if setting.Repository.PullRequest.DefaultMergeMessageOfficialApproversOnly {
|
||||
opts.Dismissed = optional.Some(false)
|
||||
}
|
||||
reviews, err := FindLatestReviews(ctx, opts)
|
||||
if err != nil {
|
||||
log.Error("Unable to FindReviews for PR ID %d: %v", pr.ID, err)
|
||||
return err
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user