新增:合并请求编辑返回关联issue数据

This commit is contained in:
yystopf 2023-03-09 10:35:07 +08:00
parent 2d7a0ef2e1
commit 7fc373e259
1 changed files with 4 additions and 1 deletions

View File

@ -12,4 +12,7 @@ json.issue_tag_ids @issue&.issue_tags_value&.split(",")
json.commits_count @pull_request.commits_count
json.files_count @pull_request.files_count
json.comments_count @pull_request.comments_count
json.reviewers @pull_request.reviewers.pluck(:login)
json.reviewers @pull_request.reviewers.pluck(:login)
json.attached_issues @pull_request.attached_issues.each do |issue|
json.(issue, :id, :subject, :project_issues_index)
end