新增:合并请求接口返回number

This commit is contained in:
yystopf 2025-11-07 17:24:15 +08:00
parent 064b0a6e19
commit 966f29e14b
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
json.total_count @pull_requests.total_count
json.pull_requests @pull_requests.map do |pull_request|
json.extract! pull_request, :id, :title, :body, :head, :base, :is_original, :fork_project_id, :created_at, :updated_at
json.extract! pull_request, :id, :title, :body, :head, :base, :is_original, :fork_project_id, :created_at, :updated_at, :gitea_number
if pull_request.project.blank?
json.project nil
else