mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 21:21:15 +00:00
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user