Skip to content

Commit 837312a

Browse files
committed
add comment
1 parent ac72824 commit 837312a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/setting/ui.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ func loadUIFrom(rootCfg ConfigProvider) {
139139
UI.DefaultShowFullName = sec.Key("DEFAULT_SHOW_FULL_NAME").MustBool(false)
140140
UI.SearchRepoDescription = sec.Key("SEARCH_REPO_DESCRIPTION").MustBool(true)
141141
UI.UseServiceWorker = sec.Key("USE_SERVICE_WORKER").MustBool(false)
142+
143+
// OnlyShowRelevantRepos=false is important for many private/enterprise instances,
144+
// because many private repositories do not have "description/topic", users just want to search by their names.
142145
UI.OnlyShowRelevantRepos = sec.Key("ONLY_SHOW_RELEVANT_REPOS").MustBool(false)
143146

144147
UI.ReactionsLookup = make(container.Set[string])

0 commit comments

Comments
 (0)