Add default option for allowing pull requests on repositories (#4873)

This commit is contained in:
Jack Gleeson
2025-02-20 12:28:28 -05:00
committed by GitHub
parent 3f95ab7331
commit 5ea4f0cfae
5 changed files with 17 additions and 1 deletions

View File

@@ -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
}