diff options
author | Stan Hu <stanhu@gmail.com> | 2016-06-11 07:16:32 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-06-11 19:50:08 -0700 |
commit | a85dde9182f177cc2fdabd90ccdad870bf4d84c3 (patch) | |
tree | b1658e39b1ea6f4807c8e3cd275b39a9eee5f8f6 /lib/api/entities.rb | |
parent | ff345f8ba11658c679b423e06bbc42b90af158eb (diff) | |
download | gitlab-ce-a85dde9182f177cc2fdabd90ccdad870bf4d84c3.tar.gz |
Fix Error 500 when using closes_issues API with an external issue tracker
Closes #18484
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 50d69274b2e..14370ac218d 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -179,6 +179,11 @@ module API expose :upvotes, :downvotes end + class ExternalIssue < Grape::Entity + expose :title + expose :id + end + class MergeRequest < ProjectEntity expose :target_branch, :source_branch expose :upvotes, :downvotes |