Do not exclude repo owner from gated rule (#641)

This commit is contained in:
6543 2022-01-01 13:17:42 +01:00 committed by GitHub
parent 30c3e139d7
commit a2429eb570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,7 +213,7 @@ func PostHook(c *gin.Context) {
build.Status = model.StatusPending
// TODO(336) extend gated feature with an allow/block List
if repo.IsGated && build.Sender != repoUser.Login {
if repo.IsGated {
build.Status = model.StatusBlocked
}