Get branch commits returns only head commit #24785
-
Hi guys, I’m looking for a way to get last N commits for a branch. Is there a way to do this via github rest api? Any help with this will be greatly appreciated 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Figured it out. It’s a linked list, follow |
Beta Was this translation helpful? Give feedback.
-
is there a way to get only feature branch's commits |
Beta Was this translation helpful? Give feedback.
Figured it out. It’s a linked list, follow
parents
url
and keep traversing.