mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
Gated builds is disabled as I don't understand the feature
This commit is contained in:
parent
69de8face1
commit
fded153328
1 changed files with 3 additions and 6 deletions
|
@ -159,12 +159,9 @@ func PostHook(c *gin.Context) {
|
|||
// }
|
||||
// }
|
||||
|
||||
// if repo.IsGated {
|
||||
// allowed, _ := Config.Services.Senders.SenderAllowed(user, repo, build, conf)
|
||||
// if !allowed {
|
||||
// build.Status = model.StatusBlocked
|
||||
// }
|
||||
// }
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue