KnpLabs / KnpLabs/php-github-api
Commit class does not expose the branches-where-head endpoint
- Dominant language
- PHP
- Stars
- 2.2k
- Forks
- 587
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the Commit object and compare its existing API methods with the linked GitHub “List branches for head commit” endpoint. Add the branchesWhereHead() entry point and verify that it exposes that endpoint with the expected response shape.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100