diff options
Diffstat (limited to 'app/models/integrations')
-rw-r--r-- | app/models/integrations/jira.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/integrations/jira.rb b/app/models/integrations/jira.rb index 25644dcf83b..30497c0110e 100644 --- a/app/models/integrations/jira.rb +++ b/app/models/integrations/jira.rb @@ -532,13 +532,14 @@ module Integrations end def build_entity_meta(entity) - if entity.is_a?(Commit) + case entity + when Commit { id: entity.short_id, description: entity.safe_message, branch: branch_name(entity) } - elsif entity.is_a?(MergeRequest) + when MergeRequest { id: entity.to_reference, branch: entity.source_branch |