KnpLabs / KnpLabs/php-github-api

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

Open
#1,145 1 comment 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.