Skip to content

Rest API, doesnt show releases of Migrated Repository #6251

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

Closed
2 of 7 tasks
wlauppe opened this issue Mar 6, 2019 · 5 comments
Closed
2 of 7 tasks

Rest API, doesnt show releases of Migrated Repository #6251

wlauppe opened this issue Mar 6, 2019 · 5 comments

Comments

@wlauppe
Copy link

wlauppe commented Mar 6, 2019

  • Gitea version (or commit ref):1.7.3
  • Git version: 2.11.0
  • Operating system:debian stretch
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

If I create a repository via the migration tool releases dont show up in the rest response.

Steps to reproduce:
click on "+" "new migration"
enter https://github.com/go-gitea/gitea into "clone url"

query the rest interface via bash (or swagger)

token=xxx
usern=xxx
server=server .name

curl -X GET "https://$server/api/v1/repos/$user/gitea/releases?access_token=$token" -H "accept: application/json"

No migrated releases are shown, if you create a new release in this this repository the rest api returns a result, but the migrated ones are still missing.

Screenshots

@wlauppe
Copy link
Author

wlauppe commented Mar 6, 2019

releases

hiere is a screenshot, the newly entered release "test" is shown in the api, the migrated ones are not.

@techknowlogick
Copy link
Member

There is a difference between releases and tags. Note in your screenshot how the new release you created looks different from the imported tags.

@wlauppe
Copy link
Author

wlauppe commented Mar 6, 2019

ah ok, thats confusing, but the migrated repository still lists 53 releases, so they must have been imported? or not?
releases2

@techknowlogick
Copy link
Member

just like on github the releases tab includes tags as well as releases.

@wlauppe
Copy link
Author

wlauppe commented Mar 7, 2019

Thanks for the quick reply, so to summerize:
even if counterintuitive at first it works as intended.
Releases are not imported from github only tags are.
Tags can not by queried at the moment by the rest api but will be in the 1.8 release
#2738

@wlauppe wlauppe closed this as completed Mar 7, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
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

2 participants