Parent PRD
#1
What to build
New bb pr diff [<number>] command that retrieves and displays the raw diff of a pull request from the Bitbucket API. In this slice, only the explicit PR number argument is supported (branch inference is added in a follow-up slice).
End-to-end: the user runs bb pr diff 42 and sees the unified diff output in their terminal. With --name-only, only the changed file paths are listed.
This requires:
- A new
GetPullRequestDiff method in the API layer that calls GET /repositories/{workspace}/{repo}/pullrequests/{id}/diff and returns the raw diff string
- A new Cobra command (
cmd/pr_diff.go) with --name-only flag
- Parsing the unified diff output to extract file names when
--name-only is used
Acceptance criteria
Blocked by
None - can start immediately
User stories addressed
- User story 5
- User story 7
- User story 25
Parent PRD
#1
What to build
New
bb pr diff [<number>]command that retrieves and displays the raw diff of a pull request from the Bitbucket API. In this slice, only the explicit PR number argument is supported (branch inference is added in a follow-up slice).End-to-end: the user runs
bb pr diff 42and sees the unified diff output in their terminal. With--name-only, only the changed file paths are listed.This requires:
GetPullRequestDiffmethod in the API layer that callsGET /repositories/{workspace}/{repo}/pullrequests/{id}/diffand returns the raw diff stringcmd/pr_diff.go) with--name-onlyflag--name-onlyis usedAcceptance criteria
bb pr diff 42outputs the raw unified diff from the Bitbucket APIbb pr diff 42 --name-onlyoutputs only the changed file paths (one per line)Blocked by
None - can start immediately
User stories addressed