Add metrics to get issues by label (#17201)

* Add metrics to get issues by label

* Add comment on IssueByLabelCount

* Code review - Unify "AS" in SQL (#17201)

* Code review - Remove useless join (#17201)

* Code review - Disable issue_by_label by default in settings (#17201)

* use e

* restore empty line

* update docs

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
Romain 2021-10-04 00:46:44 +02:00 committed by GitHub
parent 89ddbe9699
commit fc5ee1edf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 44 additions and 5 deletions

View file

@ -390,11 +390,13 @@ var (
// Metrics settings
Metrics = struct {
Enabled bool
Token string
Enabled bool
Token string
EnabledIssueByLabel bool
}{
Enabled: false,
Token: "",
Enabled: false,
Token: "",
EnabledIssueByLabel: false,
}
// I18n settings