Browse Source

allow api to create tags for releases (#4890)

for-closed-social
Bobonium 6 years ago
committed by techknowlogick
parent
commit
387a4b09c1
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      routers/api/v1/repo/release.go

+ 0
- 4
routers/api/v1/repo/release.go View File

@ -125,10 +125,6 @@ func CreateRelease(ctx *context.APIContext, form api.CreateReleaseOption) {
ctx.Status(403)
return
}
if !ctx.Repo.GitRepo.IsTagExist(form.TagName) {
ctx.Status(404)
return
}
rel, err := models.GetRelease(ctx.Repo.Repository.ID, form.TagName)
if err != nil {
if !models.IsErrReleaseNotExist(err) {

Loading…
Cancel
Save