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

Use new endpoints to get and list references #1513

Merged
merged 1 commit into from
May 7, 2020

Conversation

bluekeyes
Copy link
Contributor

Remove the GetRefs and ListRefs methods in favor of ListMatchingRefs, which performs both functions. The GetRef method remains the same, but now returns a standard 404 error if the reference does not exist.

Closes #1512.

Remove the GetRefs and ListRefs methods in favor of ListMatchingRefs,
which performs both functions. The GetRef method remains the same, but
now returns a standard 404 error if the reference does not exist.
@googlebot googlebot added the cla: yes Indication that the PR author has signed a Google Contributor License Agreement. label Apr 30, 2020
@codecov
Copy link

codecov bot commented Apr 30, 2020

Codecov Report

Merging #1513 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1513      +/-   ##
==========================================
- Coverage   68.04%   68.04%   -0.01%     
==========================================
  Files          94       94              
  Lines        8534     8502      -32     
==========================================
- Hits         5807     5785      -22     
+ Misses       1845     1838       -7     
+ Partials      882      879       -3     
Impacted Files Coverage Δ
github/git_refs.go 67.46% <100.00%> (-0.36%) ⬇️

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 b14be9f...1732c00. 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.

Thank you, @bluekeyes!
LGTM.

Awaiting second LGTM before merging.

@@ -61,9 +61,6 @@ var (
"AppsService.FindRepositoryInstallationByID": true,
"AuthorizationsService.CreateImpersonation": true,
"AuthorizationsService.DeleteImpersonation": true,
"GitService.GetRef": true,
Copy link
Collaborator

@gmlewis gmlewis Apr 30, 2020

Choose a reason for hiding this comment

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

Uh, wow... thank you for updating my maintenance tool for me as well!
I really appreciate that! ❤️

@gmlewis gmlewis added the Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s). label Apr 30, 2020
Copy link
Collaborator

@wesleimp wesleimp left a comment

Choose a reason for hiding this comment

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

LGTM 👌

@gmlewis
Copy link
Collaborator

gmlewis commented May 7, 2020

Thank you, @wesleimp!
Merging.

@gmlewis gmlewis merged commit da2666c into google:master May 7, 2020
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
Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s). 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 new Git reference get/list endpoints
4 participants