You've already forked woodpecker
							
							
				mirror of
				https://github.com/woodpecker-ci/woodpecker.git
				synced 2025-10-30 23:27:39 +02:00 
			
		
		
		
	Reinstate simplified gating logic
This commit is contained in:
		| @@ -177,15 +177,15 @@ func PostHook(c *gin.Context) { | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	if repo.IsGated { // This feature is not clear to me. Reenabling once better understood | ||||
| 		build.Status = model.StatusBlocked | ||||
| 	} | ||||
|  | ||||
| 	// update some build fields | ||||
| 	build.RepoID = repo.ID | ||||
| 	build.Verified = true | ||||
| 	build.Status = model.StatusPending | ||||
|  | ||||
| 	if repo.IsGated && build.Sender != user.Login { | ||||
| 		build.Status = model.StatusBlocked | ||||
| 	} | ||||
|  | ||||
| 	err = store.CreateBuild(c, build, build.Procs...) | ||||
| 	if err != nil { | ||||
| 		logrus.Errorf("failure to save commit for %s. %s", repo.FullName, err) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user