feat: add repo-level filter to issues and pulls list views #83
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The ROADMAP.md (Phase 2.2 — Issues List) specifies a repo-level filter in the filter bar:
Currently, only org-level filtering is supported. When an org has multiple repos, there is no way to narrow to a single repo. Adding a repo dropdown (populated after org selection) completes the filter bar spec.
Roadmap Reference
Phase 2.2 — Views — Issues List, ROADMAP.md.
What to Do
internal/handlers/handlers.go, updateListIssues:repoquery parameter (full name or just repo name within the selected org)repois set andorgis set, callListAllIssuesfor only that specific repo rather than all org reposSelectedRepo stringandRepos []stringintemplateData(repos filtered to the selected org)internal/gitea/client.goif needed to support single-repo issue listing efficientlyinternal/templates/issues.html, add a dependent repo dropdown:orgchanges, the repo dropdown should reset to "All repos"internal/templates/pulls.htmlandListPullshandlerrepoparamAcceptance Criteria
Roadmap ref: Phase 2.2 — Issues List filter bar (repo filter)
Manager Triage (2026-03-27)
Priority: P2 | Size: Medium | Assignee: AI-Engineer
Recommended agent: @developer
Assessment
This adds a repo-level dropdown filter to the issues and pulls list views. The filter depends on org selection (repo dropdown populates after org is chosen). Slightly more complex than #82 because it requires fetching the list of repos for the selected org and handling the dependent dropdown behavior.
Implementation approach
ListIssueshandler to acceptrepoquery paramReposlist in template datarepois set, filter issues to that specific repo onlyissues.htmlandpulls.htmlDependencies
None -- this can proceed immediately. Consider implementing #82 (label filter) first since it is smaller and simpler, then #83 builds on the same pattern.
Action
Assigned to AI-Engineer. Delegating to @developer -- medium complexity feature with clear spec.
Implementation complete. PR #86 opened with the following changes:
repoFilterparameter toListAllIssuesandListAllPullRequestsin client.gorepoquery param, populate repos list from selected orgReady for review.
Status: Closed by PR #86 merge. Repo-level filter is now available on issues and pulls list views. Branch was rebased to incorporate the label filter from PR #85 before merging.