gitee: getting all commits of a specific branch #100

Closed
opened 2025-10-31 17:05:38 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @shreyas1599 on GitHub (Jan 8, 2021).

Hi @pd4d10, I'm trying to add branches to gitee. This is all I could find for getting commits for a single branch:

Getting a single branch - returns a response that only includes the most recent commit - Example Response is supposed to return 2 commits. It does not return a list. I might've missed something. Perhaps you could help.

Originally created by @shreyas1599 on GitHub (Jan 8, 2021). Hi @pd4d10, I'm trying to add branches to `gitee`. This is all I could find for getting commits for a single branch: [`Getting a single branch`](https://gitee.com/api/v5/swagger#/getV5ReposOwnerRepoBranchesBranch) - returns a response that only includes the most recent commit - [`Example Response`](https://gitee.com/api/v5/repos/shreyas1599/test/branches/master) is supposed to return 2 commits. It does not return a list. I might've missed something. Perhaps you could help.
Author
Owner

@pd4d10 commented on GitHub (Jan 9, 2021):

https://gitee.com/api/v5/swagger#/getV5ReposOwnerRepoBranches

This should be the "getting all branches" API

@pd4d10 commented on GitHub (Jan 9, 2021): https://gitee.com/api/v5/swagger#/getV5ReposOwnerRepoBranches This should be the "getting all branches" API
Author
Owner

@shreyas1599 commented on GitHub (Jan 9, 2021):

https://gitee.com/api/v5/swagger#/getV5ReposOwnerRepoBranches

Oh no, this one I got. I mean all commits for a single branch. After selecting a particular brand the commits screen should display all commits specific to that branch right?

@shreyas1599 commented on GitHub (Jan 9, 2021): > https://gitee.com/api/v5/swagger#/getV5ReposOwnerRepoBranches > Oh no, this one I got. I mean all commits for a single branch. After selecting a particular brand the commits screen should display all commits specific to that branch right?
Author
Owner

@pd4d10 commented on GitHub (Jan 9, 2021):

Oh, sorry, didn't see it clearly 😂.

Does this API work? It seems to have a sha parameter to specify the branch

@pd4d10 commented on GitHub (Jan 9, 2021): Oh, sorry, didn't see it clearly 😂. Does [this API](https://gitee.com/api/v5/swagger#/getV5ReposOwnerRepoCommits) work? It seems to have a `sha` parameter to specify the branch
Author
Owner

@shreyas1599 commented on GitHub (Jan 9, 2021):

Does this API work? It seems to have a sha parameter to specify the branch

Ah ok I didn't notice the parameters. I was only searching the endpoints. I'll try this.

Edit: It works

@shreyas1599 commented on GitHub (Jan 9, 2021): > Does [this API](https://gitee.com/api/v5/swagger#/getV5ReposOwnerRepoCommits) work? It seems to have a `sha` parameter to specify the branch Ah ok I didn't notice the parameters. I was only searching the endpoints. I'll try this. Edit: It works
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/git-touch#100