Class: Gitlab::Triage::Action::CommentOnSummary::Dry
- Inherits:
-
Gitlab::Triage::Action::CommentOnSummary
- Object
- Base
- Gitlab::Triage::Action::CommentOnSummary
- Gitlab::Triage::Action::CommentOnSummary::Dry
- Defined in:
- lib/gitlab/triage/action/comment_on_summary.rb
Instance Attribute Summary
Attributes inherited from Gitlab::Triage::Action::CommentOnSummary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Gitlab::Triage::Action::CommentOnSummary
#build_comment, #build_post_url, #initialize, #sub_resource_type
Methods inherited from Base
Constructor Details
This class inherits a constructor from Gitlab::Triage::Action::CommentOnSummary
Instance Method Details
#act ⇒ Object
17 18 19 20 21 |
# File 'lib/gitlab/triage/action/comment_on_summary.rb', line 17 def act puts "The following comments would be posted for the rule **#{policy.name}**:\n\n" super end |
#perform(comment) ⇒ Object (private)
25 26 27 |
# File 'lib/gitlab/triage/action/comment_on_summary.rb', line 25 def perform(comment) puts "# #{summary[:web_url]}\n```\n#{comment}\n```\n" end |