-
Notifications
You must be signed in to change notification settings - Fork 67
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
Confusing ref format mismatch between updateReference vs createReference #7
Comments
Hey there, thanks for opening the issue. The docs cannot be updated manually right now, the endpoint methods are based on the REST API docs at https://developer.github.com/v3 This is something I’ve run into in the past myself. I think I brought it up with the docs/API team before, I think there was a legid reason for why it is the way it is, but I agree that it could at least be mentioned in the docs. Let me look into it again |
Well the behaviour makes complete sense to me from the sdk codegen point of view since the create request is explicitly defined as |
I will check in with the REST API team to see if we can skip the I’ve looked trough the routes and these are the ones that include a
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I was fairly confused by this myself; am I following that this is expected behavior, but the difference in behavior is not reflected in docs? |
I tested the
The same is true for
I'd appreciate help with testing the remaining API endpoints I tested |
Closing this issue due to inactivity and outdated docs/links. If there is still anything actionable left, let's discuss it here: |
updateReference takes a partially qualified ref { ref: "tags/x" ... } because it is interpolated into
PATCH /repos/:owner/:repo/git/refs/:ref
createReference takes a fully qualified ref { ref: "refs/tags/x" ... } because it is passed in the body of a request
This also affects other ref operations.
The difference here is very confusing and has caught me out a couple of times. Is there a way I can manually update the docs to highlight this?
Thanks
The text was updated successfully, but these errors were encountered: