Enable pull_request hook by default on repository activation (#420)

Closes #419

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
John Olheiser 2021-10-08 20:26:35 -05:00 committed by GitHub
parent 7913d6db95
commit 9c85c8fd68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,7 @@ func PostRepo(c *gin.Context) {
repo.IsActive = true repo.IsActive = true
repo.UserID = user.ID repo.UserID = user.ID
repo.AllowPull = true
if repo.Visibility == "" { if repo.Visibility == "" {
repo.Visibility = model.VisibilityPublic repo.Visibility = model.VisibilityPublic