mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-12 17:43:26 +02: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
|
// 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},
|
Types: []ReviewType{ReviewTypeApprove},
|
||||||
IssueID: pr.IssueID,
|
IssueID: pr.IssueID,
|
||||||
OfficialOnly: setting.Repository.PullRequest.DefaultMergeMessageOfficialApproversOnly,
|
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 {
|
if err != nil {
|
||||||
log.Error("Unable to FindReviews for PR ID %d: %v", pr.ID, err)
|
log.Error("Unable to FindReviews for PR ID %d: %v", pr.ID, err)
|
||||||
return err
|
return err
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user