forked from Trustie/forgeplus
新增:合并请求接口返回number
This commit is contained in:
parent
064b0a6e19
commit
966f29e14b
|
|
@ -1,6 +1,6 @@
|
||||||
json.total_count @pull_requests.total_count
|
json.total_count @pull_requests.total_count
|
||||||
json.pull_requests @pull_requests.map do |pull_request|
|
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?
|
if pull_request.project.blank?
|
||||||
json.project nil
|
json.project nil
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue