mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	allow api to create tags for releases (#4890)
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user