pd4d10 / git-touch

An open-source app for GitHub, GitLab, Bitbucket, Gitea, and Gitee(码云), built with Flutter
Apache License 2.0
1.53k stars 131 forks source link

gitee: getting all commits of a specific branch #151

Closed shreyas1599 closed 3 years ago

shreyas1599 commented 3 years ago

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.

pd4d10 commented 3 years ago

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

This should be the "getting all branches" API

shreyas1599 commented 3 years ago

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?

pd4d10 commented 3 years ago

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

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

shreyas1599 commented 3 years ago

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