fix(pr): accept the short PR id that forge pr list prints #183
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!183
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/pr-short-id"
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?
What
Make
forge pr show/merge/close/comment/approveaccept the short 8-char id thatforge pr listprints (item #2 of the forge-CLI DX field report).Why
Those subcommands looked up the PR by exact UUID, so the id
listshows 404'd — every action needed alist --jsonround-trip to recover the full id.Change
resolvePRIDnow prefix-matches a short id against the current app's PRs (a full UUID is still used as-is; errors clearly on no/ambiguous match).comment/request-changesroute their explicit id through it too. Pure matchermatchPRIDPrefixis unit-tested.Verification
Go
build/vetgreen;TestMatchPRIDPrefix4/4 (full-id passthrough, unique prefix, no-match, ambiguous).Field report: item #2.
forge pr listprints