php-github-api icon indicating copy to clipboard operation
php-github-api copied to clipboard

Commit class does not expose the branches-where-head endpoint

Open tip2tail opened this issue 4 months ago • 1 comments

It is sometimes required to identify any branches of which a given commit ID is a member of.

GitHub API provides such a method as documented here: https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#list-branches-for-head-commit

Propose adding a new member function branchesWhereHead() to the Commit object to expose this

tip2tail avatar Oct 01 '24 00:10 tip2tail