From db3220092ade9cb604b24e56a2c21092d8708f9c Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre Date: Thu, 13 Apr 2017 17:31:29 -0300 Subject: Import issues comments --- lib/github/representation/issue.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/github/representation') 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 -- cgit v1.2.1