mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 03:41:01 +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:
parent
7913d6db95
commit
9c85c8fd68
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ func PostRepo(c *gin.Context) {
|
|||
|
||||
repo.IsActive = true
|
||||
repo.UserID = user.ID
|
||||
repo.AllowPull = true
|
||||
|
||||
if repo.Visibility == "" {
|
||||
repo.Visibility = model.VisibilityPublic
|
||||
|
|
Loading…
Reference in a new issue