diff options
| author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-04-19 21:18:11 -0300 |
|---|---|---|
| committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-04-24 16:17:52 -0300 |
| commit | 3c0a713a379025c079f8a684943e95af087c9e86 (patch) | |
| tree | f35dd4098c5fe77a4df01816bfeb17906903eddf /lib/github/representation | |
| parent | 3aa89795568dc2fbc53f2fac8c4f8ac3499dadb0 (diff) | |
| download | gitlab-ce-3c0a713a379025c079f8a684943e95af087c9e86.tar.gz | |
Import Github releases
Diffstat (limited to 'lib/github/representation')
| -rw-r--r-- | lib/github/representation/release.rb | 17 |
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 |
