summaryrefslogtreecommitdiff
path: root/lib/github/representation/issuable.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2017-10-18 21:46:05 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2017-11-07 23:25:03 +0100
commit6e242e82237ad2cf362098f3f42f4a9dd1a4ad27 (patch)
tree415639ff14183a4914dac69fcc400806cb477525 /lib/github/representation/issuable.rb
parent4dfe26cd8b6863b7e6c81f5c280cdafe9b6e17b6 (diff)
downloadgitlab-ce-github-importer-refactor.tar.gz
Replace old GH importer with the parallel importergithub-importer-refactor
Diffstat (limited to 'lib/github/representation/issuable.rb')
-rw-r--r--lib/github/representation/issuable.rb37
1 files changed, 0 insertions, 37 deletions
diff --git a/lib/github/representation/issuable.rb b/lib/github/representation/issuable.rb
deleted file mode 100644
index 768ba3b993c..00000000000
--- a/lib/github/representation/issuable.rb
+++ /dev/null
@@ -1,37 +0,0 @@
-module Github
- module Representation
- class Issuable < Representation::Base
- def iid
- raw['number']
- end
-
- def title
- raw['title']
- end
-
- def description
- raw['body'] || ''
- end
-
- def milestone
- return unless raw['milestone'].present?
-
- @milestone ||= Github::Representation::Milestone.new(raw['milestone'])
- end
-
- def author
- @author ||= Github::Representation::User.new(raw['user'], options)
- end
-
- def labels?
- raw['labels'].any?
- end
-
- def labels
- @labels ||= Array(raw['labels']).map do |label|
- Github::Representation::Label.new(label, options)
- end
- end
- end
- end
-end