Skip to content

Commit

Permalink
Add CommitID, InReplyTo, and SubjectType to DraftReviewComment (#3169)
Browse files Browse the repository at this point in the history
Fixes: #3168.
  • Loading branch information
matt-simons committed May 14, 2024
1 parent 4169a9c commit 06c9709
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 12 deletions.
24 changes: 24 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 12 additions & 9 deletions github/github-stringify_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions github/pulls_reviews.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ func (p PullRequestReview) String() string {

// DraftReviewComment represents a comment part of the review.
type DraftReviewComment struct {
Path *string `json:"path,omitempty"`
Position *int `json:"position,omitempty"`
Body *string `json:"body,omitempty"`
Path *string `json:"path,omitempty"`
Position *int `json:"position,omitempty"`
Body *string `json:"body,omitempty"`
CommitID *string `json:"commit_id,omitempty"`
InReplyTo *int64 `json:"in_reply_to,omitempty"`
SubjectType *string `json:"subject_type,omitempty"`

// The new comfort-fade-preview fields
StartSide *string `json:"start_side,omitempty"`
Expand Down

0 comments on commit 06c9709

Please sign in to comment.