forked from forgejo/forgejo
Sync releases table with tags on push and for mirrors (#2459)
* Sync releases table with tags on push and for mirrors * Code style fixes * Fix api to return only releases * Optimize release creation and update Minimize posibility of race conditions * Fix release lower tag name updating * handle tag reference update by addionally comparing commit id
This commit is contained in:
parent
8b6236d67b
commit
7a0297819d
10 changed files with 370 additions and 122 deletions
|
@ -357,6 +357,7 @@ func RepoAssignment() macaron.Handler {
|
|||
|
||||
count, err := models.GetReleaseCountByRepoID(ctx.Repo.Repository.ID, models.FindReleasesOptions{
|
||||
IncludeDrafts: false,
|
||||
IncludeTags: true,
|
||||
})
|
||||
if err != nil {
|
||||
ctx.Handle(500, "GetReleaseCountByRepoID", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue