feat: add label filter to issues and pulls list views #82
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 label filter in the issues list:
Currently, both the issues list (
/issues) and pulls list (/pulls) support filtering by org and state, but there is no label filter. This makes it hard to find issues by type (e.g., P1, agent-ready, bug).Roadmap Reference
Phase 2.2 — Views — Issues List, ROADMAP.md.
What to Do
internal/handlers/handlers.go, updateListIssuesto:labelquery parameterh.Client.ListAllIssues()(the Gitea API supportslabelsquery param)SelectedLabel stringintemplateDatainternal/gitea/client.goListAllIssuesto accept and forward a label filter string to the Gitea API (?labels=<name>)ListPulls/ListAllPullRequestsinternal/templates/issues.html, add a text input or select for label filtering in the filter bar:internal/templates/pulls.htmllabelparamAcceptance Criteria
Roadmap ref: Phase 2.2 — Issues List filter bar (label filter)
Manager Triage (2026-03-27)
Priority: P2 | Size: Small | Assignee: AI-Engineer
Recommended agent: @developer
Assessment
This adds a label text filter to the existing issues and pulls list views. The filter bar already exists with org and state dropdowns. The Gitea API natively supports a
labelsquery parameter, so the backend change is minimal.Implementation approach
ListAllIssuesinclient.goto accept and forward a label filterListIssuesandListPullshandlers to acceptlabelquery paramissues.htmlandpulls.htmlfilter barslabelparamAction
Assigned to AI-Engineer. Delegating to @developer -- small, well-defined feature with clear acceptance criteria.
Implementation complete. PR #85 opened with the following changes:
labelparameter toListAllIssuesandListAllPullRequestsin client.golabelquery param and pass to clientReady for review.
Status: Closed by PR #85 merge. Label filter is now available on issues and pulls list views.