Welcome to mirror list, hosted at ThFree Co, Russian Federation.

issue_entity.rb « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c189a4992da83b7d3b9f43f622a2bc7ef327aba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class IssueEntity < IssuableEntity
  include RequestAwareEntity

  expose :branch_name
  expose :confidential
  expose :assignees, using: API::Entities::UserBasic
  expose :due_date
  expose :moved_to_id
  expose :project_id
  expose :milestone, using: API::Entities::Milestone
  expose :labels, using: LabelEntity

  expose :web_url do |issue|
    project_issue_path(issue.project, issue)
  end
end