diff options
Diffstat (limited to 'lib/bitbucket_server/representation/activity.rb')
-rw-r--r-- | lib/bitbucket_server/representation/activity.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/bitbucket_server/representation/activity.rb b/lib/bitbucket_server/representation/activity.rb index 08bf30a5d1e..ec1e3d148f3 100644 --- a/lib/bitbucket_server/representation/activity.rb +++ b/lib/bitbucket_server/representation/activity.rb @@ -4,7 +4,7 @@ module BitbucketServer module Representation class Activity < Representation::Base def comment? - action == 'COMMENTED' + action == "COMMENTED" end def inline_comment? @@ -24,25 +24,25 @@ module BitbucketServer # TODO Move this into MergeEvent def merge_event? - action == 'MERGED' + action == "MERGED" end def committer_user - commit.dig('committer', 'displayName') + commit.dig("committer", "displayName") end def committer_email - commit.dig('committer', 'emailAddress') + commit.dig("committer", "emailAddress") end def merge_timestamp - timestamp = commit['committerTimestamp'] + timestamp = commit["committerTimestamp"] self.class.convert_timestamp(timestamp) end def merge_commit - commit['id'] + commit["id"] end def created_at @@ -52,19 +52,19 @@ module BitbucketServer private def commit - raw.fetch('commit', {}) + raw.fetch("commit", {}) end def action - raw['action'] + raw["action"] end def comment_anchor - raw['commentAnchor'] + raw["commentAnchor"] end def created_date - raw['createdDate'] + raw["createdDate"] end end end |