Commit 657c4c18 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'master' into 27955-mr-notification-use-pipeline-language

* master:
  Rename issuable to IssueBase
parents be88e942 f60cb12f
module Gitlab
module ChatCommands
module Presenters
module Issuable
module IssueBase
def color(issuable)
issuable.open? ? '#38ae67' : '#d22852'
end
......
......@@ -2,7 +2,7 @@ module Gitlab
module ChatCommands
module Presenters
class IssueNew < Presenters::Base
include Presenters::Issuable
include Presenters::IssueBase
def present
in_channel_response(new_issue)
......
......@@ -2,7 +2,7 @@ module Gitlab
module ChatCommands
module Presenters
class IssueSearch < Presenters::Base
include Presenters::Issuable
include Presenters::IssueBase
def present
text = if @resource.count >= 5
......
......@@ -2,7 +2,7 @@ module Gitlab
module ChatCommands
module Presenters
class IssueShow < Presenters::Base
include Presenters::Issuable
include Presenters::IssueBase
def present
if @resource.confidential?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment