Class: Ruboty::Github::Actions::CloseIssue
- Defined in:
- lib/ruboty/github/actions/close_issue.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Ruboty::Github::Actions::Base
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/ruboty/github/actions/close_issue.rb', line 5 def call case when !has_access_token? require_access_token when has_closed_issue_number? reply_already_closed else close end rescue Octokit:: .reply("Failed in authentication (401)") rescue Octokit::NotFound .reply("Could not find that issue") rescue => exception raise exception .reply("Failed by #{exception.class}") end |