summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index d0efa7b993b..68b93f306e2 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -376,6 +376,15 @@ module API
header(*Gitlab::Workhorse.send_git_archive(repository, ref: ref, format: format))
end
+ # TODO: Please, remove this when V3 API is gone.
+ def v3_issue_entity(project)
+ if project.has_external_issue_tracker?
+ Entities::ExternalIssue
+ else
+ ::API::V3::Entities::Issue
+ end
+ end
+
def issue_entity(project)
if project.has_external_issue_tracker?
Entities::ExternalIssue