Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tip2tail opened this issue Oct 1, 2024 · 1 comment
Open

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

tip2tail opened this issue Oct 1, 2024 · 1 comment

Comments

@tip2tail
Copy link

tip2tail commented Oct 1, 2024

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
Copy link
Author

tip2tail commented Oct 1, 2024

Note - I intend to develop this and will submit a PR in due course

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant