diff options
author | Stan Hu <stanhu@gmail.com> | 2015-12-11 23:17:36 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-12-11 23:17:36 -0800 |
commit | 3efae53bd79db118463bfaeceb209bc91f63bd0b (patch) | |
tree | 8cd4d83e4d395c223ce9a3105f0bcc13b271e2fd /lib/api | |
parent | 74dcbec369aca9dfa181c9a82e1978ba2396773a (diff) | |
download | gitlab-ce-3efae53bd79db118463bfaeceb209bc91f63bd0b.tar.gz |
Add open_issues_count to project API
This is needed to support Huboard and a generally useful value.
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 81bf7a8222b..014116ef130 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -68,6 +68,7 @@ module API expose :forked_from_project, using: Entities::ForkedFromProject, if: lambda{ | project, options | project.forked? } expose :avatar_url expose :star_count, :forks_count + expose :open_issues_count, if: lambda { | project, options | project.issues_enabled? && project.default_issues_tracker? } end class ProjectMember < UserBasic |