mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 13:31:49 +00:00
added default 1 hour default timeout for projects
This commit is contained in:
@@ -103,6 +103,7 @@ func (h *RepoHandler) PostRepo(w http.ResponseWriter, r *http.Request) error {
|
||||
repo.PullRequest = true
|
||||
repo.PostCommit = true
|
||||
repo.UserID = user.ID
|
||||
repo.Timeout = 3600 // default to 1 hour
|
||||
|
||||
// generate the rsa key
|
||||
key, err := sshutil.GeneratePrivateKey()
|
||||
|
Reference in New Issue
Block a user