Gated builds is disabled as I don't understand the feature

This commit is contained in:
Laszlo Fogas 2019-06-19 09:01:17 +02:00
parent 69de8face1
commit fded153328

View file

@ -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