新增:合并请求列表返回关联issue数据

This commit is contained in:
yystopf 2023-03-08 17:59:36 +08:00
parent 70de1136e1
commit bd855ea4ed
2 changed files with 4 additions and 1 deletions

View File

@ -38,6 +38,9 @@ json.issues do
json.version issue.version.try(:name)
json.journals_count issue.get_journals_size
json.issue_tags issue.get_issue_tags
json.attached_issues pr.attached_issues.each do |issue|
json.(issue, :id, :subject, :project_issues_index)
end
end
end

View File

@ -52,7 +52,7 @@ json.issue do
end
json.attached_issues @pull_request.attached_issues.each do |issue|
json.(issue, :id,:subject)
json.(issue, :id, :subject, :project_issues_index)
end
json.conflict_files @pull_request.conflict_files