Skip to content

Commit f664094

Browse files
authored
Remove outdated comment for #540 (#2117)
1 parent c67c0c3 commit f664094

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

github/pulls_reviews.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@ func (s *PullRequestsService) ListReviews(ctx context.Context, owner, repo strin
125125

126126
// GetReview fetches the specified pull request review.
127127
//
128-
// TODO: Follow up with GitHub support about an issue with this method's
129-
// returned error format and remove this comment once it's fixed.
130-
// Read more about it here - https://github.com/google/go-github/issues/540
131-
//
132128
// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#get-a-review-for-a-pull-request
133129
func (s *PullRequestsService) GetReview(ctx context.Context, owner, repo string, number int, reviewID int64) (*PullRequestReview, *Response, error) {
134130
u := fmt.Sprintf("repos/%v/%v/pulls/%d/reviews/%d", owner, repo, number, reviewID)
@@ -149,10 +145,6 @@ func (s *PullRequestsService) GetReview(ctx context.Context, owner, repo string,
149145

150146
// DeletePendingReview deletes the specified pull request pending review.
151147
//
152-
// TODO: Follow up with GitHub support about an issue with this method's
153-
// returned error format and remove this comment once it's fixed.
154-
// Read more about it here - https://github.com/google/go-github/issues/540
155-
//
156148
// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#delete-a-pending-review-for-a-pull-request
157149
func (s *PullRequestsService) DeletePendingReview(ctx context.Context, owner, repo string, number int, reviewID int64) (*PullRequestReview, *Response, error) {
158150
u := fmt.Sprintf("repos/%v/%v/pulls/%d/reviews/%d", owner, repo, number, reviewID)
@@ -173,10 +165,6 @@ func (s *PullRequestsService) DeletePendingReview(ctx context.Context, owner, re
173165

174166
// ListReviewComments lists all the comments for the specified review.
175167
//
176-
// TODO: Follow up with GitHub support about an issue with this method's
177-
// returned error format and remove this comment once it's fixed.
178-
// Read more about it here - https://github.com/google/go-github/issues/540
179-
//
180168
// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-comments-for-a-pull-request-review
181169
func (s *PullRequestsService) ListReviewComments(ctx context.Context, owner, repo string, number int, reviewID int64, opts *ListOptions) ([]*PullRequestComment, *Response, error) {
182170
u := fmt.Sprintf("repos/%v/%v/pulls/%d/reviews/%d/comments", owner, repo, number, reviewID)
@@ -201,10 +189,6 @@ func (s *PullRequestsService) ListReviewComments(ctx context.Context, owner, rep
201189

202190
// CreateReview creates a new review on the specified pull request.
203191
//
204-
// TODO: Follow up with GitHub support about an issue with this method's
205-
// returned error format and remove this comment once it's fixed.
206-
// Read more about it here - https://github.com/google/go-github/issues/540
207-
//
208192
// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#create-a-review-for-a-pull-request
209193
//
210194
// In order to use multi-line comments, you must use the "comfort fade" preview.
@@ -289,10 +273,6 @@ func (s *PullRequestsService) UpdateReview(ctx context.Context, owner, repo stri
289273

290274
// SubmitReview submits a specified review on the specified pull request.
291275
//
292-
// TODO: Follow up with GitHub support about an issue with this method's
293-
// returned error format and remove this comment once it's fixed.
294-
// Read more about it here - https://github.com/google/go-github/issues/540
295-
//
296276
// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#submit-a-review-for-a-pull-request
297277
func (s *PullRequestsService) SubmitReview(ctx context.Context, owner, repo string, number int, reviewID int64, review *PullRequestReviewRequest) (*PullRequestReview, *Response, error) {
298278
u := fmt.Sprintf("repos/%v/%v/pulls/%d/reviews/%d/events", owner, repo, number, reviewID)
@@ -313,10 +293,6 @@ func (s *PullRequestsService) SubmitReview(ctx context.Context, owner, repo stri
313293

314294
// DismissReview dismisses a specified review on the specified pull request.
315295
//
316-
// TODO: Follow up with GitHub support about an issue with this method's
317-
// returned error format and remove this comment once it's fixed.
318-
// Read more about it here - https://github.com/google/go-github/issues/540
319-
//
320296
// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#dismiss-a-review-for-a-pull-request
321297
func (s *PullRequestsService) DismissReview(ctx context.Context, owner, repo string, number int, reviewID int64, review *PullRequestReviewDismissalRequest) (*PullRequestReview, *Response, error) {
322298
u := fmt.Sprintf("repos/%v/%v/pulls/%d/reviews/%d/dismissals", owner, repo, number, reviewID)

0 commit comments

Comments
 (0)