Skip to content

Commit

Permalink
remove number from delete_pull_request_comment()
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Aug 12, 2024
1 parent 61b6d03 commit 7f4d859
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/octokit/client/pull_requests.cr
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,10 @@ module Octokit
# **Examples:**
#
# ```
# Octokit.delete_pull_request_comment("crystal-lang/crystal", 123, 456)
# Octokit.delete_pull_request_comment("crystal-lang/crystal", 456)
# ```
def delete_pull_request_comment(repo : String, number : Int64, comment_id : Int64, **options)
delete "#{Repository.path repo}/pulls/#{number}/comments/#{comment_id}", {params: options}
def delete_pull_request_comment(repo : String, comment_id : Int64, **options)
delete "#{Repository.path repo}/pulls/comments/#{comment_id}", {params: options}
end

alias_method :delete_pull_request_comment, :delete_pull_comment
Expand Down

0 comments on commit 7f4d859

Please sign in to comment.