How to get all commit tags from the GitHub API

How to get all commit tags from the GitHub API.

Problem: I have a file. I have extracted the file commits from the API. Now I need to know all the tags that include a particular commit. The GitHub site shows tags really nicely, but I couldn't find an API way.

+3


source to share


1 answer


It seems that github secretly provides such an API. The url looks like this: https://api.github.com/repos/{{user}}/{{repository}}/tags

I think it works for any ref (notes, etc.).



-2


source







All Articles