diff options
author | Rémy Coutable <remy@rymai.me> | 2016-03-15 16:17:24 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-05-09 16:08:07 +0200 |
commit | f5240f9703fea9902ac4304b8e12daed5c21820d (patch) | |
tree | 6bc6456eb684c1a4d6bc39b7d1b1bad6e36996c1 /lib | |
parent | 5364400741b7d041c945ccca98283bc465d5a87c (diff) | |
download | gitlab-ce-f5240f9703fea9902ac4304b8e12daed5c21820d.tar.gz |
Expose MergeRequest#user_notes_count in the API and use the method in issues list
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 42f623c5a3a..2870a6a40ef 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -187,10 +187,10 @@ module API expose :milestone, using: Entities::Milestone expose :merge_when_build_succeeds expose :merge_status - expose :subscribed do |merge_request, options| merge_request.subscribed?(options[:current_user]) end + expose :user_notes_count end class MergeRequestChanges < MergeRequest |