mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 13:45:44 +08:00
新增: pr 最后一次审核展示
This commit is contained in:
@@ -9,7 +9,7 @@ class RepositoriesController < ApplicationController
|
|||||||
before_action :load_repository
|
before_action :load_repository
|
||||||
before_action :authorizate!, except: [:sync_mirror, :tags, :commit, :archive]
|
before_action :authorizate!, except: [:sync_mirror, :tags, :commit, :archive]
|
||||||
before_action :authorizate_user_can_edit_repo!, only: %i[sync_mirror]
|
before_action :authorizate_user_can_edit_repo!, only: %i[sync_mirror]
|
||||||
before_action :get_ref, only: %i[entries sub_entries top_counts file archive]
|
before_action :get_ref, only: %i[entries sub_entries top_counts files archive]
|
||||||
before_action :get_latest_commit, only: %i[entries sub_entries top_counts]
|
before_action :get_latest_commit, only: %i[entries sub_entries top_counts]
|
||||||
before_action :get_statistics, only: %i[top_counts]
|
before_action :get_statistics, only: %i[top_counts]
|
||||||
|
|
||||||
|
|||||||
@@ -15,9 +15,11 @@ json.author do
|
|||||||
json.partial! 'users/user_simple', user: @issue_user
|
json.partial! 'users/user_simple', user: @issue_user
|
||||||
end
|
end
|
||||||
|
|
||||||
json.last_review do
|
if @last_review.present?
|
||||||
json.(@last_review, :id, :commit_id, :content, :status)
|
json.last_review do
|
||||||
json.created_at format_time(@last_review.created_at)
|
json.(@last_review, :id, :commit_id, :content, :status)
|
||||||
|
json.created_at format_time(@last_review.created_at)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
json.pull_request do
|
json.pull_request do
|
||||||
|
|||||||
Reference in New Issue
Block a user