lib/octokitted/common/issue.rb in octokitted-0.0.9 vs lib/octokitted/common/issue.rb in octokitted-1.0.0
- old
+ new
@@ -41,11 +41,11 @@
end
# Adds a comment to an issue or pull request
# :param comment: The comment to add to the issue (String)
# :param issue_number: The issue number to add the comment to
- Contract KeywordArgs[comment: String, issue_number: Maybe[Numeric]] => Any
- def add_comment(comment:, issue_number: nil)
+ Contract String, KeywordArgs[issue_number: Maybe[Numeric]] => Any
+ def add_comment(comment, issue_number: nil)
issue_number = construct_issue_numer(issue_number)
@log.debug("adding comment: #{comment} to issue: #{issue_number}")
@octokit.add_comment(@octokitted.org_and_repo, issue_number, comment)
end