[GH-ISSUE #151] gitee: getting all commits of a specific branch #1327

Closed
opened 2026-04-19 13:17:27 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @shreyas1599 on GitHub (Jan 8, 2021).
Original GitHub issue: https://github.com/pd4d10/git-touch/issues/151

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). Original GitHub issue: https://github.com/pd4d10/git-touch/issues/151 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

<!-- gh-comment-id:757086594 --> @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?

<!-- gh-comment-id:757092753 --> @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

<!-- gh-comment-id:757093224 --> @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

<!-- gh-comment-id:757094460 --> @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#1327