Skip to content

Allow access to repo.git.tags #268

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Allow access to repo.git.tags #268

wants to merge 2 commits into from

Conversation

ntdb
Copy link

@ntdb ntdb commented Aug 6, 2018

Github's /git/refs/tag/<TAG> endpoint seems to be limited to annotated tags. I encountered a situation where I needed to access a lightweight tag that, itself, pointed to an annotated release tag. When fetching this ref, the object.url returned by Github was of the form /git/tags/<TAG> but this form was not supported by Octokat. These changes allow the fetching of lightweight tags through repo.git.tags.

This SO answer was pivotal in helping me understand this case and identify the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant