Skip to content

Commit 387a4b0

Browse files
Boboniumtechknowlogick
authored andcommitted
allow api to create tags for releases (#4890)
1 parent 15ebe4b commit 387a4b0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

routers/api/v1/repo/release.go

-4
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@ func CreateRelease(ctx *context.APIContext, form api.CreateReleaseOption) {
125125
ctx.Status(403)
126126
return
127127
}
128-
if !ctx.Repo.GitRepo.IsTagExist(form.TagName) {
129-
ctx.Status(404)
130-
return
131-
}
132128
rel, err := models.GetRelease(ctx.Repo.Repository.ID, form.TagName)
133129
if err != nil {
134130
if !models.IsErrReleaseNotExist(err) {

0 commit comments

Comments
 (0)