Skip to content

Added update branch API#1187

Merged
gmlewis merged 4 commits intogoogle:masterfrom
waseem18:preview-update-branch
Jun 9, 2019
Merged

Added update branch API#1187
gmlewis merged 4 commits intogoogle:masterfrom
waseem18:preview-update-branch

Conversation

@waseem18
Copy link
Copy Markdown
Contributor

@waseem18 waseem18 commented Jun 8, 2019

Fixes #1183

@googlebot googlebot added the cla: yes Indication that the PR author has signed a Google Contributor License Agreement. label Jun 8, 2019
@waseem18
Copy link
Copy Markdown
Contributor Author

waseem18 commented Jun 8, 2019

@gmlewis Could you please review this PR?

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 8, 2019

Codecov Report

Merging #1187 into master will decrease coverage by 0.01%.
The diff coverage is 63.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1187      +/-   ##
==========================================
- Coverage   70.25%   70.24%   -0.02%     
==========================================
  Files          84       84              
  Lines        5867     5878      +11     
==========================================
+ Hits         4122     4129       +7     
- Misses        956      958       +2     
- Partials      789      791       +2
Impacted Files Coverage Δ
github/github.go 87.53% <ø> (ø) ⬆️
github/pulls.go 72.66% <63.63%> (-0.78%) ⬇️

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 8354c07...3fb1b09. 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.

Very nice, @waseem18!

Just a couple of minor tweaks, please, and then I think we will be ready to merge after I get a second LGTM.

Comment thread github/pulls.go Outdated
type PullReqestBranchUpdateOptions struct {
// ExpectedHeadSha specifies the most recent commit on the pull request's branch.
// Default value is the SHA of the pull request's current HEAD ref.
ExpectedHeadSha *string `json:"expected_head_sha,omitempty"`
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.

Let's please rename this to ExpectedHeadSHA.

Comment thread github/pulls.go Outdated

// UpdateBranch updates the pull request branch with latest upstream changes.
//
// This method might return an *AcceptedError and a status code of
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.

Please remove the * for consistency.

@gmlewis gmlewis requested a review from gauntface June 8, 2019 17:49
@waseem18
Copy link
Copy Markdown
Contributor Author

waseem18 commented Jun 8, 2019

@gmlewis Addressed reviews.

Hope the commits are squashed while merging.

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, @waseem18! Yes, we always "Squash and Merge" in this repo. 😄
LGTM.

Awaiting second LGTM before merging.

Copy link
Copy Markdown
Contributor

@vaibhavsingh97 vaibhavsingh97 left a comment

Choose a reason for hiding this comment

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

LGTM, +1.
Good work @waseem18 ! 🎉

@gmlewis
Copy link
Copy Markdown
Collaborator

gmlewis commented Jun 9, 2019

Thank you, @vaibhavsingh97 for the LGTM.

Merging.

@gmlewis gmlewis merged commit 6a35880 into google:master Jun 9, 2019
@waseem18 waseem18 deleted the preview-update-branch branch June 10, 2019 05:37
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.

Support preview Update Branch API

4 participants