forgeplus/app/views/pull_requests/edit.json.jbuilder

15 lines
732 B
Plaintext
Raw Normal View History

2020-03-09 00:40:16 +08:00
json.partial! "commons/success"
2020-06-29 17:06:46 +08:00
# json.partial! "pull_requests/merge_item"
2020-06-30 09:44:28 +08:00
json.fork_project_user_name @fork_project_user_name
2020-06-29 17:06:46 +08:00
json.fork_project_user @fork_project_user
json.fork_project_identifier @fork_project_identifier
json.project_author @project.owner.try(:show_real_name)
json.project_name @project.repository.try(:identifier)
2020-06-30 09:44:28 +08:00
json.project_login @project.owner.try(:login)
2020-06-29 17:06:46 +08:00
json.extract! @pull_request, :id, :title, :body, :milestone,:head,:base,:is_original
2020-06-12 18:22:42 +08:00
json.extract! @issue, :assigned_to_id, :fixed_version_id, :priority_id
2020-06-30 10:43:08 +08:00
json.issue_tag_ids @issue&.issue_tags_value&.split(",")
2020-11-04 14:08:34 +08:00
json.commits_count @pull_request.commits_count
json.files_count @pull_request.files_count
json.comments_count @pull_request.comments_count