Skip to content

Commit 819cc17

Browse files
committed
fix pull_request_comment() it does not need the PR number
1 parent dc94e82 commit 819cc17

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
@@ -192,10 +192,10 @@ module Octokit
192192
# **Examples:**
193193
#
194194
# ```
195-
# Octokit.pull_request_comment("crystal-lang/crystal", 123, 456)
195+
# Octokit.pull_request_comment("crystal-lang/crystal", 456)
196196
# ```
197-
def pull_request_comment(repo : String, number : Int64, comment_id : Int64, **options)
198-
get "#{Repository.path(repo)}/pulls/#{number}/comments/#{comment_id}", {params: options}
197+
def pull_request_comment(repo : String, comment_id : Int64, **options)
198+
get "#{Repository.path(repo)}/pulls/comments/#{comment_id}", {params: options}
199199
end
200200

201201
alias_method :pull_request_comment, :pull_comment

0 commit comments

Comments
 (0)