Given the SHA of a specific commit in my repo, I want to identify branches containing commit using the GitHub API .
I know I can do it locally using git directly in various ways, including
git branch --contains <commit>
but this is for an integrated page that retrieves data from multiple platforms, so I really need to use the API.
This question had an accepted answer, which said that this was not possible in 2013, but I hope that from now on the API will add something in this direction.
Does anyone know how to get this information without asking for a list of ALL commits in the branches of interest and iterating through them to compare?
github
S mccrohan
source share