mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Add repository setting to enable/disable health checks (#3607)
New Feature:
  * Repository struct field for IsFsckEnabled (default true of course)
  * Admin Settings section on repo options page, accessible only by
    admin users
Possible Enhancements:
  * There's no way to force running health checks on all repos
    regardless of their IsFsckEnabled setting. This would be useful if
    there were an admin API or dashboard button to run fsck immediately.
Issue: https://github.com/go-gitea/gitea/issues/1712
Signed-off-by: Allen Wild <allenwild93@gmail.com>
			
			
This commit is contained in:
		| @@ -113,6 +113,9 @@ type RepoSettingForm struct { | ||||
| 	PullsAllowSquash                 bool | ||||
| 	EnableTimetracker                bool | ||||
| 	AllowOnlyContributorsToTrackTime bool | ||||
|  | ||||
| 	// Admin settings | ||||
| 	EnableHealthCheck bool | ||||
| } | ||||
|  | ||||
| // Validate validates the fields | ||||
|   | ||||
		Reference in New Issue
	
	Block a user