Skip to content

Commit 06c9709

Browse files
authored
Add CommitID, InReplyTo, and SubjectType to DraftReviewComment (#3169)
Fixes: #3168.
1 parent 4169a9c commit 06c9709

File tree

4 files changed

+72
-12
lines changed

4 files changed

+72
-12
lines changed

github/github-accessors.go

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-stringify_test.go

Lines changed: 12 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/pulls_reviews.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ func (p PullRequestReview) String() string {
3535

3636
// DraftReviewComment represents a comment part of the review.
3737
type DraftReviewComment struct {
38-
Path *string `json:"path,omitempty"`
39-
Position *int `json:"position,omitempty"`
40-
Body *string `json:"body,omitempty"`
38+
Path *string `json:"path,omitempty"`
39+
Position *int `json:"position,omitempty"`
40+
Body *string `json:"body,omitempty"`
41+
CommitID *string `json:"commit_id,omitempty"`
42+
InReplyTo *int64 `json:"in_reply_to,omitempty"`
43+
SubjectType *string `json:"subject_type,omitempty"`
4144

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

0 commit comments

Comments
 (0)