diff options
author | sebastian-sauer <sauer.sebastian@gmail.com> | 2019-01-27 10:25:21 +0100 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-01-27 09:25:21 +0000 |
commit | 84076211b3da9bd8ab9ba30806276f0faff6d5fb (patch) | |
tree | 42d4eeba8bed911103fbf4672def96c7d280ac32 /modules | |
parent | b8a81cb1b887799d169fd916a4c4e1a075aca2c3 (diff) | |
download | gitea-84076211b3da9bd8ab9ba30806276f0faff6d5fb.tar.gz gitea-84076211b3da9bd8ab9ba30806276f0faff6d5fb.zip |
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>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index ec9fa02c25..4aca579617 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -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) |