Skip to content

fix(miners): sort PRs by state-relevant activity timestamp#225

Open
marktech0813 wants to merge 1 commit into
entrius:testfrom
marktech0813:fix/186-state-relevant-sort-v2
Open

fix(miners): sort PRs by state-relevant activity timestamp#225
marktech0813 wants to merge 1 commit into
entrius:testfrom
marktech0813:fix/186-state-relevant-sort-v2

Conversation

@marktech0813

Copy link
Copy Markdown

Summary

Miners pulls API ordered by `created_at`, so a recently closed/merged PR ranked below an older OPEN PR.

Sort by `merged_at` / `closed_at` / `created_at` via `activity_at`, and keyset-paginate on it.

Closes #186

Supersedes #223 (closed: PR cap + wrong base).

Test plan

  • SELECT + ORDER BY + keyset on both pull endpoints

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] miners API: pull requests sorted by created_at instead of state-relevant timestamp

1 participant