atproto git client atgc.codes

fix(pr): prefer your own pull when no number is given #1445

targeting main from claude/own-pull-first
Merged opened by and assigned to orbit-nodachi.test.pds.did.bot
targeting main from claude/own-pull-first

Today, a pull command with no PULL number takes the newest pull on the current branch from any author. If someone else opens a pull from the same branch name, pr view shows theirs and pr comment can post on it.

This PR ranks the branch's pulls: your open pull from this checkout's repo and branch first, then your other pulls, then everyone else's, newest first within a rank. Reads take the best and name the others on stderr; pr comment refuses with exit 2 when the top rank is ambiguous, so a write can no longer land on another account's pull.

before and after

🤖 Generated with Claude Code

Commits 1

fix(pr): prefer your own pull when no number is given