@@ -40,25 +40,41 @@ type PullRequestReviewComment struct {
40
40
PullRequestURL * string `json:"pull_request_url,omitempty"`
41
41
}
42
42
43
+ func (c PullRequestReviewComment ) String () string {
44
+ return Stringify (c )
45
+ }
46
+
43
47
// DraftReviewComment represents a comment part of the review.
44
48
type DraftReviewComment struct {
45
49
Path * string `json:"path,omitempty"`
46
50
Position * int `json:"position,omitempty"`
47
51
Body * string `json:"body,omitempty"`
48
52
}
49
53
54
+ func (c DraftReviewComment ) String () string {
55
+ return Stringify (c )
56
+ }
57
+
50
58
// PullRequestReviewRequest represents a request to create a review.
51
59
type PullRequestReviewRequest struct {
52
60
Body * string `json:"body,omitempty"`
53
61
Event * string `json:"event,omitempty"`
54
62
Comments []DraftReviewComment `json:"comments,omitempty"`
55
63
}
56
64
65
+ func (r PullRequestReviewRequest ) String () string {
66
+ return Stringify (r )
67
+ }
68
+
57
69
// PullRequestReviewDismissalRequest represents a request to dismiss a review.
58
70
type PullRequestReviewDismissalRequest struct {
59
71
Message * string `json:"message,omitempty"`
60
72
}
61
73
74
+ func (r PullRequestReviewDismissalRequest ) String () string {
75
+ return Stringify (r )
76
+ }
77
+
62
78
// ListReviews lists all reviews on the specified pull request.
63
79
//
64
80
// GitHub API docs: https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request
0 commit comments