List threads

List top-level discussion threads for a repo.

Endpoints

GET /api/v1/teams/{team_slug}/repos/{repo_slug}/threads
GET /api/v1/users/{username}/repos/{repo_slug}/threads

Uses the normal paging query params such as ?page=1&per_page=20.

Supported query params: sort, repeatable status, priority, kind, size, and search. Supported status values are open, draft, closed, and done. Supported sort values are activity, -activity, created, and -created. The API default sort remains -number.

The search param performs full-text search across thread titles, bodies, and reply bodies using PostgreSQL websearch_to_tsquery syntax. Search composes with all other filters using AND semantics.

Success

200 OK with a paged JSON response of thread objects containing uuid, per-repo number, title, body, kind, status, created_by_uuid, created_by_username, created_at, and updated_at.