mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
added default 1 hour default timeout for projects
This commit is contained in:
parent
73d2f5c1ca
commit
2448c34c6b
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue