I have this very simple code using PyGithub
from github import Github
g = Github('<offuscated token>')
repo = g.get_repo("telefonicaid/fiware-orion")
repo.get_git_tag("3.8.0")
The repository is public (in fact, maybe the token is not needed...) and the tag exists, it can be checked here: https://github.com/telefonicaid/fiware-orion/tree/3.8.0
However, if I run that code I get at repo.get_git_tag("3.8.0")
the following exception:
github.GithubException.UnknownObjectException: 404 {"message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/git#get-a-tag"}
Maybe this is not the right way of getting a tag using PyGithub? How should be done in that case, please?
Thanks in advance!