[GITHUB API] Find the branch name corresponding to a commit

Is there a REST API that provides the branch name to which a particular commit was merged, by giving the commit SHA ?

I tried searching a lot, all are providing the commit details , except the branch name…! which is really strange and shocking.

Another blog/post advised to iterate through all the commits of a branch and search for the respective commit SHA. That is a really costly operation, because there are 10k or even more commits in our branch. Hence its not recommended and will go for this approach only if no other option :frowning_face:

Does anyone know a straight forward API for getting the commit details including the branch name, against a given SHA ?