[PR #2326] [CLOSED] Add repository type option to /api/repo/search #16345

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2326
Author: @Morlinest
Created: 8/17/2017
Status: Closed

Base: masterHead: feature-api-repo-search-options


📝 Commits (10+)

  • a50f7a8 Add more repo search tests
  • 50867df Add and fix /api/repo/search integration tests
  • 2d8b046 Add owner to access table for organization repositories
  • 27f037d Fix repo search tests
  • 4fcbded Always test returned repos length
  • 8cb7ce2 Add test with lower pagesize limit (test more pages)
  • dae998e Fix/rewrite searchRepositoryByName function
  • 7c9323d Remove authorization decisions making
  • 9da9e96 Fix search of starred repositories
  • 14f73a3 Simplify code

📊 Changes

15 files changed (+765 additions, -190 deletions)

View changed files

📝 integrations/api_repo_test.go (+107 -1)
📝 models/fixtures/access.yml (+35 -0)
📝 models/fixtures/org_user.yml (+8 -0)
📝 models/fixtures/repository.yml (+191 -0)
📝 models/fixtures/team.yml (+9 -0)
📝 models/fixtures/team_repo.yml (+24 -0)
📝 models/fixtures/team_user.yml (+6 -0)
📝 models/fixtures/user.yml (+47 -0)
📝 models/org_test.go (+1 -1)
📝 models/repo_list.go (+119 -108)
📝 models/repo_list_test.go (+157 -8)
📝 public/swagger.v1.json (+7 -0)
📝 routers/api/v1/repo/repo.go (+23 -22)
📝 routers/home.go (+21 -40)
📝 routers/user/profile.go (+10 -10)

📄 Description

First attempt to solve #2321. I want to check, if this way is OK.


🔄 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/2326 **Author:** [@Morlinest](https://github.com/Morlinest) **Created:** 8/17/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feature-api-repo-search-options` --- ### 📝 Commits (10+) - [`a50f7a8`](https://github.com/go-gitea/gitea/commit/a50f7a8cbf9b38270afe8b080033204eac178ef9) Add more repo search tests - [`50867df`](https://github.com/go-gitea/gitea/commit/50867dfe7f3e97fbffe19dafae7b43f40c48422b) Add and fix /api/repo/search integration tests - [`2d8b046`](https://github.com/go-gitea/gitea/commit/2d8b046ea0f7383a15a545d207d714ce04d69d14) Add owner to access table for organization repositories - [`27f037d`](https://github.com/go-gitea/gitea/commit/27f037d321826dbe4c85592975e10ecddee3a3f5) Fix repo search tests - [`4fcbded`](https://github.com/go-gitea/gitea/commit/4fcbded80930fe562f33482b2e1d368cb8ac854f) Always test returned repos length - [`8cb7ce2`](https://github.com/go-gitea/gitea/commit/8cb7ce2afb733bf83a76d38ab1719547247fc677) Add test with lower pagesize limit (test more pages) - [`dae998e`](https://github.com/go-gitea/gitea/commit/dae998e50b9781db60d640eda40ae475c0333268) Fix/rewrite searchRepositoryByName function - [`7c9323d`](https://github.com/go-gitea/gitea/commit/7c9323dc1fbefe316dff5673da22e80080306fa5) Remove authorization decisions making - [`9da9e96`](https://github.com/go-gitea/gitea/commit/9da9e960a641bfacb6781e871882b4c731644fe1) Fix search of starred repositories - [`14f73a3`](https://github.com/go-gitea/gitea/commit/14f73a3795f759ed2d81bbd99290a590c72903d5) Simplify code ### 📊 Changes **15 files changed** (+765 additions, -190 deletions) <details> <summary>View changed files</summary> 📝 `integrations/api_repo_test.go` (+107 -1) 📝 `models/fixtures/access.yml` (+35 -0) 📝 `models/fixtures/org_user.yml` (+8 -0) 📝 `models/fixtures/repository.yml` (+191 -0) 📝 `models/fixtures/team.yml` (+9 -0) 📝 `models/fixtures/team_repo.yml` (+24 -0) 📝 `models/fixtures/team_user.yml` (+6 -0) 📝 `models/fixtures/user.yml` (+47 -0) 📝 `models/org_test.go` (+1 -1) 📝 `models/repo_list.go` (+119 -108) 📝 `models/repo_list_test.go` (+157 -8) 📝 `public/swagger.v1.json` (+7 -0) 📝 `routers/api/v1/repo/repo.go` (+23 -22) 📝 `routers/home.go` (+21 -40) 📝 `routers/user/profile.go` (+10 -10) </details> ### 📄 Description First attempt to solve #2321. I want to check, if this way is OK. --- <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:08:26 -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#16345