summaryrefslogtreecommitdiff
path: root/lib/github/representation
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-04-19 21:18:11 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-04-24 16:17:52 -0300
commit3c0a713a379025c079f8a684943e95af087c9e86 (patch)
treef35dd4098c5fe77a4df01816bfeb17906903eddf /lib/github/representation
parent3aa89795568dc2fbc53f2fac8c4f8ac3499dadb0 (diff)
downloadgitlab-ce-3c0a713a379025c079f8a684943e95af087c9e86.tar.gz
Import Github releases
Diffstat (limited to 'lib/github/representation')
-rw-r--r--lib/github/representation/release.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/github/representation/release.rb b/lib/github/representation/release.rb
new file mode 100644
index 00000000000..e7e4b428c1a
--- /dev/null
+++ b/lib/github/representation/release.rb
@@ -0,0 +1,17 @@
+module Github
+ module Representation
+ class Release < Representation::Base
+ def description
+ raw['body']
+ end
+
+ def tag
+ raw['tag_name']
+ end
+
+ def valid?
+ !raw['draft']
+ end
+ end
+ end
+end