Skip to content

Add method for updating a pull request review#1177

Merged
gmlewis merged 2 commits intogoogle:masterfrom
joshuabezaleel:update-pull-request-review
May 30, 2019
Merged

Add method for updating a pull request review#1177
gmlewis merged 2 commits intogoogle:masterfrom
joshuabezaleel:update-pull-request-review

Conversation

@joshuabezaleel
Copy link
Copy Markdown
Contributor

Fixes: #1174

  • Add UpdateReview to PullRequestReview.
  • Add its test.

@googlebot googlebot added the cla: yes Indication that the PR author has signed a Google Contributor License Agreement. label May 26, 2019
@codecov
Copy link
Copy Markdown

codecov Bot commented May 26, 2019

Codecov Report

Merging #1177 into master will decrease coverage by <.01%.
The diff coverage is 69.23%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1177      +/-   ##
=========================================
- Coverage    70.2%   70.2%   -0.01%     
=========================================
  Files          84      84              
  Lines        5844    5857      +13     
=========================================
+ Hits         4103    4112       +9     
- Misses        954     956       +2     
- Partials      787     789       +2
Impacted Files Coverage Δ
github/pulls_reviews.go 77.31% <69.23%> (-1.26%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9010303...41b1785. Read the comment docs.

Copy link
Copy Markdown
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, @joshuabezaleel!
Just a couple tweaks and then I think we are good to go, please.

Comment thread github/pulls_reviews.go Outdated
}{Body: body}
u := fmt.Sprintf("repos/%v/%v/pulls/%d/reviews/%d", owner, repo, number, reviewID)

req, err := s.client.NewRequest("PATCH", u, opts)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This needs to be PUT, not PATCH.

Comment thread github/pulls_reviews_test.go Outdated
Comment thread go.sum Outdated
@gmlewis gmlewis requested a review from gauntface May 26, 2019 21:05
Copy link
Copy Markdown
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, @joshuabezaleel!
LGTM.

Awaiting second LGTM before merging.

Copy link
Copy Markdown
Contributor

@gauntface gauntface left a comment

Choose a reason for hiding this comment

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

Looks great to me 👍

@gmlewis
Copy link
Copy Markdown
Collaborator

gmlewis commented May 30, 2019

Thank you, @gauntface!
Merging.

@gmlewis gmlewis merged commit 0ab167c into google:master May 30, 2019
@joshuabezaleel
Copy link
Copy Markdown
Contributor Author

Thank you very much, @gmlewis and @gauntface ! :)

n1lesh pushed a commit to n1lesh/go-github that referenced this pull request Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Indication that the PR author has signed a Google Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add method for updating a pull request review

4 participants