see https://try.gitea.io/lunny/core/releases for examples. This repo is migrated from https://github.com/go-xorm/core. The counter is 8, but nothing listed.
The problem is that the count is computed using GitRepo.NumTags()
, whereas the list of releases is computed using the database. During the migration, the repo's tags are preserved, but no corresponding releases are added to the database.
We also don't generate/delete releases when tags are added/deleted. It seems there are two options
I think the first option would be needed as otherwise mirrors will be missing releases
As @lafriks said, I like the first option
If we chose option 2, we need a new tab named tags. Tags
is different with Releases
, user could create Releases
on Tags
, user also could upload files to create Releases
.
@lunny I plan to work on first option
@lafriks any news ?
We could stick with option 1 we list tags and releases under release. Just if we found a release matching tag we display the attachements and formatted message in place of just the short message of tag. I think github does the same (even wrap successive tags without corresponding release).
@sapk I'm working on it, hope to finish on weekend
@lafriks option 2 maybe an easier one. When importing, we can create release for every tags and inserted to databases. And on v1.3 we can add tags
on Source
, so that a release could be created from a tag. It's different from Github but more clear. And also it's easy to implement public release of private repo.
@lafriks since release/v1.2 created, please rebase and send PR to that branch.
@lunny I would say keep on master and backport.
I will keep it to master and then backport
@sapk @lafriks yes, you are right!
@lafriks do have open a PR even with un-finished work but that we can pre-review ? Can we do anything to help you ?
@sapk I will submit PR later today
Hi.
How does the issue look? The last on the list :)
@qdbdbp also #2370 which will be back ported to v1.2. I will release v1.2.0-rc1 at first at #2388 merged.
This isn't fixed yet.
Yes only point 2 is implemented
@lafriks, So next, we only need copy tags to releases when migrating and add a button on tags to create a release.
Not only but I'm working on that. Anyway I think it should not be 1.2.0 blocker. This can be later backported to 1.2.1
@lunny is the counter still 8? or is it 0?
@bkcsoft now counter is 0
If so the bug would be fixed in my opinion. Gitea only imports the git repo, and Releases are metadata outside the repo.
~But how to create releases?~ Then we need a tags list on release create page?
@lunny Yes, that would be the expected behaviour IMO
Possibly related: #3247
Most helpful comment
Not only but I'm working on that. Anyway I think it should not be 1.2.0 blocker. This can be later backported to 1.2.1