[PR #3664] [MERGED] Global code search support #17036

Closed
opened 2025-11-02 12:24:47 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3664
Author: @lunny
Created: 3/13/2018
Status: Merged
Merged: 3/16/2018
Merged by: @lunny

Base: masterHead: lunny/global_code_search


📝 Commits (6)

  • dc1d578 add global code search on explore
  • cf5576e fix bug when no anyone public repos
  • baa9943 change the icon
  • ddf027e fix typo and add UnitTypeCode check for login non-admin user
  • 94f0ddb fix ui description when no match
  • 3d388c6 Merge branch 'master' into lunny/global_code_search

📊 Changes

10 files changed (+238 additions, -9 deletions)

View changed files

📝 models/repo.go (+6 -0)
📝 models/repo_list.go (+25 -0)
📝 modules/indexer/repo.go (+21 -6)
📝 modules/search/search.go (+4 -2)
📝 options/locale/locale_en-US.ini (+3 -0)
📝 routers/home.go (+116 -0)
📝 routers/repo/search.go (+2 -1)
📝 routers/routes/routes.go (+1 -0)
templates/explore/code.tmpl (+55 -0)
📝 templates/explore/navbar.tmpl (+5 -0)

📄 Description

This PR added a code search UI on explore. When indexer is enabled, both guest user and login user could use the feature. Guest user will only search public codes and login user could also search private codes he could access.
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/3664 **Author:** [@lunny](https://github.com/lunny) **Created:** 3/13/2018 **Status:** ✅ Merged **Merged:** 3/16/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/global_code_search` --- ### 📝 Commits (6) - [`dc1d578`](https://github.com/go-gitea/gitea/commit/dc1d578fb2a3661cf181f5982d7bdf017ce80af9) add global code search on explore - [`cf5576e`](https://github.com/go-gitea/gitea/commit/cf5576eb2bd7b79b9df46df0ae8a4c91adf72508) fix bug when no anyone public repos - [`baa9943`](https://github.com/go-gitea/gitea/commit/baa9943e04d23b263761d4cb08e8e6a11e15b793) change the icon - [`ddf027e`](https://github.com/go-gitea/gitea/commit/ddf027ed2f3c28e49b1e913148a0f915d44e6b00) fix typo and add UnitTypeCode check for login non-admin user - [`94f0ddb`](https://github.com/go-gitea/gitea/commit/94f0ddbcd299ee20e52c1d90dc8bae0944d9b7d5) fix ui description when no match - [`3d388c6`](https://github.com/go-gitea/gitea/commit/3d388c65aeeffa3a4679dcef22e3a8c451011d21) Merge branch 'master' into lunny/global_code_search ### 📊 Changes **10 files changed** (+238 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `models/repo.go` (+6 -0) 📝 `models/repo_list.go` (+25 -0) 📝 `modules/indexer/repo.go` (+21 -6) 📝 `modules/search/search.go` (+4 -2) 📝 `options/locale/locale_en-US.ini` (+3 -0) 📝 `routers/home.go` (+116 -0) 📝 `routers/repo/search.go` (+2 -1) 📝 `routers/routes/routes.go` (+1 -0) ➕ `templates/explore/code.tmpl` (+55 -0) 📝 `templates/explore/navbar.tmpl` (+5 -0) </details> ### 📄 Description This PR added a code search UI on explore. When indexer is enabled, both guest user and login user could use the feature. Guest user will only search public codes and login user could also search private codes he could access. ![image](https://user-images.githubusercontent.com/81045/37379091-f775d530-276c-11e8-8368-45b80e871607.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:24:47 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17036