Skip to content

Conversation

KanavCode
Copy link

This PR introduces the ability to filter repositories within a team project in Gitea.

Changes:

  • Added a new function GetFilteredTeamRepositories in models/repo/org_repo.go to filter repositories by a search term.
  • Updated the TeamRepositories handler in routers/web/org/teams.go to accept a search parameter (q) and use the filtering function.
  • Passed the search term back to the template for better user experience.

Problem Solved:

Large organizations often have dozens or hundreds of repositories assigned to teams. This feature allows users to quickly narrow down results, improving navigation efficiency.

Testing:

  • Ensure the search parameter (q) filters repositories correctly.
  • Verify that the feature does not break existing functionality.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 7, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Oct 7, 2025
@wxiaoguang
Copy link
Contributor

Don't use AI coding if you haven't understood the problem.

And please write your thoughts and understandings, but not AI messages in the PR.

@wxiaoguang wxiaoguang marked this pull request as draft October 7, 2025 03:59
@KanavCode KanavCode closed this by deleting the head repository Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants