fix: reopen a closed matching PR instead of 422 #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/reopen-closed-pr"
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?
When a head/base match existed but was CLOSED, the lookup queried only state=open and fell through to POST /pulls, hard-422ing. Now the lookup includes closed PRs; on a closed match it reopens (PATCH state=open) and updates title/body instead of creating. Test covers the closed-match path.
Backlog #15.