mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 10:58:10 +00:00
* fix(github): prefer the open PR when a branch has several The branch lookup asked GitHub for one PR across all states. GitHub sorts a branch's PRs newest first, so a closed PR opened after the live one shadowed it and got linked to the worktree on every checkout. Fetch a page of the branch's PRs, REST and the `gh pr list` fallback alike, and take the open one; with none open, keep the newest as before. * refactor(github): keep branch lookup casts on their own lines --------- Co-authored-by: agustin2606 <agustinvarela2606@gmail.com>