Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CommitID, InReplyTo, and SubjectType to DraftReviewComment #3169

Merged
merged 1 commit into from
May 14, 2024

Conversation

matt-simons
Copy link
Contributor

@matt-simons matt-simons commented May 14, 2024

closes #3168

Made InReplyTo an int64 following the established type in https://pkg.go.dev/github.com/google/go-github/v62/github#PullRequestComment but happy to change if that or anything else is incorrect.

Position *int `json:"position,omitempty"`
Body *string `json:"body,omitempty"`
CommitID *string `json:"commit_id,omitempty"`
InReplyTo *int64 `json:"in_reply_to,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On this page: https://docs.github.com/en/rest/pulls/reviews?apiVersion=2022-11-28#list-comments-for-a-pull-request-review--code-samples
I see in_reply_to_id but I'm not finding id_reply_to anywhere on the page.

Where are you finding that field?

Also, I'm not finding subject_type anywhere on that page. Where is that field coming from?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @matt-simons !
LGTM.
Merging.

@gmlewis gmlewis merged commit 06c9709 into google:master May 14, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for CommitID, InReplyTo, and SubjectType to DraftReviewComment
2 participants