Skip to content

Commit

Permalink
pull_comments model fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Aug 12, 2024
1 parent ae03b3c commit dc94e82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/octokit/client/pull_requests.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ require "uri"
require "../models/repos"
require "../models/pulls"
require "../models/commits"
require "../models/pull_comments"

module Octokit
class Client
Expand All @@ -19,6 +20,8 @@ module Octokit
alias PullRequest = Octokit::Models::PullRequest
# :nodoc:
alias Commit = Octokit::Models::Commit
# :nodoc:
alias PullRequestComment = Octokit::Models::PullRequestComment

# Valid filters for PullRequests
FILTERS = ["all", "assigned", "created", "mentioned", "subscribed"]
Expand Down Expand Up @@ -140,8 +143,8 @@ module Octokit

alias_method :pull_request_commits, :pull_commits

# List comments on a pull request
#
# List review comments on a pull request
# This method applies to pull request review comments
# **See Also:**
# - [https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request](https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request)
#
Expand Down
2 changes: 1 addition & 1 deletion src/octokit/models/pull_comments.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Octokit
Octokit.rest_model(
id: Int64,
node_id: String,
in_reply_to: Int64,
in_reply_to: Int64?,
body: String,
path: String,
diff_hunk: String,
Expand Down

0 comments on commit dc94e82

Please sign in to comment.