From e72273f3b2e366105a49b4ede3a68a6bc37485c0 Mon Sep 17 00:00:00 2001 From: yystopf Date: Tue, 26 Jul 2022 14:29:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=20=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E8=AF=A6=E6=83=85=E4=B8=ADreview=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E6=9C=80=E6=96=B0=E7=9A=84=E4=B8=80=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/v1/projects/pulls_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/projects/pulls_controller.rb b/app/controllers/api/v1/projects/pulls_controller.rb index a930df760..c93cd8bd8 100644 --- a/app/controllers/api/v1/projects/pulls_controller.rb +++ b/app/controllers/api/v1/projects/pulls_controller.rb @@ -10,7 +10,7 @@ class Api::V1::Projects::PullsController < Api::V1::BaseController def show @result_object = Api::V1::Projects::Pulls::GetService.call(@project, @pull_request, current_user&.gitea_token) - @last_review = @pull_request.reviews.take + @last_review = @pull_request.reviews.order(created_at: :desc).take end private