mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Config option to disable automatic repo watching (#5852)
Add a new config option to enable / disable the automatic watching of repos for new repositories and if a user is added to a team. Fixes #653 Signed-off-by: Sebastian Sauer <sauer.sebastian@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						zeripath
					
				
			
			
				
	
			
			
			
						parent
						
							b8a81cb1b8
						
					
				
				
					commit
					84076211b3
				
			@@ -1247,6 +1247,7 @@ var Service struct {
 | 
			
		||||
	DefaultAllowOnlyContributorsToTrackTime bool
 | 
			
		||||
	NoReplyAddress                          string
 | 
			
		||||
	EnableUserHeatmap                       bool
 | 
			
		||||
	AutoWatchNewRepos                       bool
 | 
			
		||||
 | 
			
		||||
	// OpenID settings
 | 
			
		||||
	EnableOpenIDSignIn bool
 | 
			
		||||
@@ -1281,6 +1282,7 @@ func newService() {
 | 
			
		||||
	Service.DefaultAllowOnlyContributorsToTrackTime = sec.Key("DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME").MustBool(true)
 | 
			
		||||
	Service.NoReplyAddress = sec.Key("NO_REPLY_ADDRESS").MustString("noreply.example.org")
 | 
			
		||||
	Service.EnableUserHeatmap = sec.Key("ENABLE_USER_HEATMAP").MustBool(true)
 | 
			
		||||
	Service.AutoWatchNewRepos = sec.Key("AUTO_WATCH_NEW_REPOS").MustBool(true)
 | 
			
		||||
 | 
			
		||||
	sec = Cfg.Section("openid")
 | 
			
		||||
	Service.EnableOpenIDSignIn = sec.Key("ENABLE_OPENID_SIGNIN").MustBool(!InstallLock)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user