diff options
author | Romain <romdum@users.noreply.github.com> | 2021-10-05 20:39:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 20:39:37 +0200 |
commit | 987152ba408b03fe0b15dd9c72dfd1614b4159fd (patch) | |
tree | 02572cb5512f146797c3a3d715f0bee22eb138f7 /modules/setting/setting.go | |
parent | 760d61b411460db3f3c688c214a6199b5b18eb27 (diff) | |
download | gitea-987152ba408b03fe0b15dd9c72dfd1614b4159fd.tar.gz gitea-987152ba408b03fe0b15dd9c72dfd1614b4159fd.zip |
Add metrics to get issues by repository (#17225)
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r-- | modules/setting/setting.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index bdb3b1fd7b..88302be1d3 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -390,13 +390,15 @@ var ( // Metrics settings Metrics = struct { - Enabled bool - Token string - EnabledIssueByLabel bool + Enabled bool + Token string + EnabledIssueByLabel bool + EnabledIssueByRepository bool }{ - Enabled: false, - Token: "", - EnabledIssueByLabel: false, + Enabled: false, + Token: "", + EnabledIssueByLabel: false, + EnabledIssueByRepository: false, } // I18n settings |