Class: Gitlab::Triage::Action::Comment::Dry
- Inherits:
-
Comment
- Object
- Comment
- Gitlab::Triage::Action::Comment::Dry
- Defined in:
- lib/gitlab/triage/action/comment.rb
Instance Method Summary collapse
Instance Method Details
#act ⇒ Object
17 18 19 20 21 |
# File 'lib/gitlab/triage/action/comment.rb', line 17 def act puts "The following comments would be posted for the rule **#{policy.name}**:\n\n" super end |
#perform(resource, comment) ⇒ Object (private)
25 26 27 |
# File 'lib/gitlab/triage/action/comment.rb', line 25 def perform(resource, comment) puts "# #{resource[:web_url]}\n```\n#{comment}\n```\n" end |