-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
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.
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
There was a problem hiding this 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, |
There was a problem hiding this comment.
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! ❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👌
Thank you, @wesleimp! |
Remove the
GetRefs
andListRefs
methods in favor ofListMatchingRefs
, which performs both functions. TheGetRef
method remains the same, but now returns a standard 404 error if the reference does not exist.Closes #1512.