How to get first parent path of a branch using github API?

Viewed 261

Using GitHub API, is there a way to get commit ids associated with first parent alone?

Simply, I want to get the output of

git log --first-parent origin/branch_name

command through API.

0 Answers
Related