mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	Make hook status printing configurable with delay (#9641)
* Delay printing hook statuses until after 1 second * Move to a 5s delay, wrapped writer structure and add config * Update cmd/hook.go * Apply suggestions from code review * Update cmd/hook.go Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
This commit is contained in:
		| @@ -21,6 +21,8 @@ var ( | ||||
| 		MaxGitDiffLines           int | ||||
| 		MaxGitDiffLineCharacters  int | ||||
| 		MaxGitDiffFiles           int | ||||
| 		VerbosePush               bool | ||||
| 		VerbosePushDelay          time.Duration | ||||
| 		GCArgs                    []string `ini:"GC_ARGS" delim:" "` | ||||
| 		EnableAutoGitWireProtocol bool | ||||
| 		Timeout                   struct { | ||||
| @@ -36,6 +38,8 @@ var ( | ||||
| 		MaxGitDiffLines:           1000, | ||||
| 		MaxGitDiffLineCharacters:  5000, | ||||
| 		MaxGitDiffFiles:           100, | ||||
| 		VerbosePush:               true, | ||||
| 		VerbosePushDelay:          5 * time.Second, | ||||
| 		GCArgs:                    []string{}, | ||||
| 		EnableAutoGitWireProtocol: true, | ||||
| 		Timeout: struct { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user