mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Add default option for allowing pull requests on repositories (#4873)
This commit is contained in:
@@ -92,7 +92,7 @@ func PostRepo(c *gin.Context) {
|
||||
} else {
|
||||
repo = from
|
||||
repo.RequireApproval = model.RequireApprovalForks
|
||||
repo.AllowPull = true
|
||||
repo.AllowPull = server.Config.Pipeline.DefaultAllowPullRequests
|
||||
repo.AllowDeploy = false
|
||||
repo.CancelPreviousPipelineEvents = server.Config.Pipeline.DefaultCancelPreviousPipelineEvents
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user