diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-04-13 17:31:29 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-04-24 16:17:52 -0300 |
commit | db3220092ade9cb604b24e56a2c21092d8708f9c (patch) | |
tree | a77d36a0e61b40e74e6204a118e5119806c38be0 /lib/github/representation/issue.rb | |
parent | c26076664f557f697555ced7e97fff9ea8f88aab (diff) | |
download | gitlab-ce-db3220092ade9cb604b24e56a2c21092d8708f9c.tar.gz |
Import issues comments
Diffstat (limited to 'lib/github/representation/issue.rb')
-rw-r--r-- | lib/github/representation/issue.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/github/representation/issue.rb b/lib/github/representation/issue.rb index 62c71cc191b..c73eefa0983 100644 --- a/lib/github/representation/issue.rb +++ b/lib/github/representation/issue.rb @@ -49,6 +49,10 @@ module Github raw['assignee'].present? end + def has_comments? + raw['comments'] > 0 + end + def pull_request? raw['pull_request'].present? end |