Skip to content

Commit 7f4d859

Browse files
committed
remove number from delete_pull_request_comment()
1 parent 61b6d03 commit 7f4d859

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/octokit/client/pull_requests.cr

+3-3
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,10 @@ module Octokit
288288
# **Examples:**
289289
#
290290
# ```
291-
# Octokit.delete_pull_request_comment("crystal-lang/crystal", 123, 456)
291+
# Octokit.delete_pull_request_comment("crystal-lang/crystal", 456)
292292
# ```
293-
def delete_pull_request_comment(repo : String, number : Int64, comment_id : Int64, **options)
294-
delete "#{Repository.path repo}/pulls/#{number}/comments/#{comment_id}", {params: options}
293+
def delete_pull_request_comment(repo : String, comment_id : Int64, **options)
294+
delete "#{Repository.path repo}/pulls/comments/#{comment_id}", {params: options}
295295
end
296296

297297
alias_method :delete_pull_request_comment, :delete_pull_comment

0 commit comments

Comments
 (0)