Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update git_refs.go #1240

Merged
merged 4 commits into from
Sep 7, 2019
Merged

Update git_refs.go #1240

merged 4 commits into from
Sep 7, 2019

Conversation

dprotaso
Copy link
Contributor

Fix a segfault when fetching refs from github returns an error (say due to connectivity)

Fix a segfault when fetching refs from github returns an error (say due to connectivity)
@googlebot googlebot added the cla: yes Indication that the PR author has signed a Google Contributor License Agreement. label Jul 25, 2019
github client returns a response _and_ error when the status code is 404 (in contrast to the standard http.Client)
be consistent with other parts of the github client returning the response && error
Fix syntax error and remind self to stop using GitHub editor
@codecov
Copy link

codecov bot commented Jul 25, 2019

Codecov Report

Merging #1240 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1240   +/-   ##
=======================================
  Coverage   73.36%   73.36%           
=======================================
  Files          86       86           
  Lines        6026     6026           
=======================================
  Hits         4421     4421           
  Misses        836      836           
  Partials      769      769
Impacted Files Coverage Δ
github/git_refs.go 72.52% <100%> (ø) ⬆️

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 c756c32...a19f69f. Read the comment docs.

Copy link
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.

Ah, thank you, @dprotaso! I'm surprised this was not caught months ago.
LGTM.

Awaiting second LGTM before merging.

Note to self - this will be a semver minor version bump due to the bug fix.

@gmlewis gmlewis requested a review from gauntface July 25, 2019 12:13
@dprotaso
Copy link
Contributor Author

I'm surprised this was not caught months ago

@gmlewis I was only playing with this part of the API - so there may be similar issues in other calls?

Also feel free to squash the commits on merge :)

@gmlewis
Copy link
Collaborator

gmlewis commented Sep 7, 2019

Thank you, @gauntface!
Merging then bumping minor version due to bug fix.

@gmlewis gmlewis merged commit eaf0d7d into google:master Sep 7, 2019
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.

4 participants