lib/backlog_kit/client/issue.rb in backlog_kit-0.17.0 vs lib/backlog_kit/client/issue.rb in backlog_kit-0.18.0
- old
+ new
@@ -98,9 +98,18 @@
# @return [BacklogKit::Response] The comment information
def update_comment(issue_id_or_key, comment_id, content)
patch("issues/#{issue_id_or_key}/comments/#{comment_id}", content: content)
end
+ # Delete a comment in issue
+ #
+ # @param issue_id_or_key [Integer, String] Issue id or Issue key
+ # @param comment_id [Integer, String] Comment id
+ # @return [BacklogKit::Response] The comment information
+ def delete_comment(issue_id_or_key, comment_id)
+ delete("issues/#{issue_id_or_key}/comments/#{comment_id}")
+ end
+
# Get list of comment notifications
#
# @param issue_id_or_key [Integer, String] Issue id or Issue key
# @param comment_id [Integer, String] Comment id
# @return [BacklogKit::Response] List of notifications