mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-25 21:00:01 +02:00
update with git api
This commit is contained in:
parent
2eabeba6b7
commit
7d84cc96e8
3 changed files with 5 additions and 8 deletions
|
@ -140,8 +140,7 @@ func ReleasesNewPost(ctx *middleware.Context, form auth.NewReleaseForm) {
|
|||
IsPrerelease: form.Prerelease,
|
||||
}
|
||||
|
||||
if err = models.CreateRelease(models.RepoPath(ctx.User.Name, ctx.Repo.Repository.Name),
|
||||
rel, ctx.Repo.GitRepo); err != nil {
|
||||
if err = models.CreateRelease(ctx.Repo.GitRepo, rel); err != nil {
|
||||
if err == models.ErrReleaseAlreadyExist {
|
||||
ctx.RenderWithErr("Release with this tag name has already existed", "release/new", &form)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue