Skip to content
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

Closed
xishengcai opened this issue Aug 27, 2020 · 2 comments
Closed

无法获取tag列表 #6281

xishengcai opened this issue Aug 27, 2020 · 2 comments

Comments

@xishengcai
Copy link

xishengcai commented Aug 27, 2020

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Can you reproduce the bug at https://try.gogs.io?

Expected behavior

Actual behavior

Screenshots

Additional context

@unknwon
Copy link
Member

unknwon commented Aug 27, 2020

Gogs currently does not have a API to list Git tags, seems duplicated to gogs/go-gogs-client#109.

@unknwon unknwon closed this as completed Aug 27, 2020
@forgethub
Copy link
Contributor

我自己增加了一个接口来获取tag 列表, 修改 repo_branch.go 文件中 names, err := gitRepo.Branches() 为 names, err := gitRepo.Tags() 就可以获取Tag 的列表了

Gogs currently does not have a API to list Git tags, seems duplicated to gogs/go-gogs-client#109.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants