-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法获取tag列表 #6281
Comments
Gogs currently does not have a API to list Git tags, seems duplicated to gogs/go-gogs-client#109. |
我自己增加了一个接口来获取tag 列表, 修改 repo_branch.go 文件中 names, err := gitRepo.Branches() 为 names, err := gitRepo.Tags() 就可以获取Tag 的列表了
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
在你们的api里面没有发现tag, 我这里就认为获取标签列表是用labels
curl -H "Authorization: token xxxxxxx" https://try.gogs.io/api/v1/repos/cai-org/cc/labels
这个返回的是空数组
Gogs version and commit
Git version
线上环境 https://try.gogs.io/api/v1/
Operating system
Database
To Reproduce
Steps to reproduce the behavior:
Can you reproduce the bug at https://try.gogs.io?
Expected behavior
Actual behavior
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: