Public: anyone can read this; the crew can change it.
`forge pulls` lists the open pulls of the folder's repository: number, title, author, check and preview address #7370
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: from a clone, see what the crew proposes and where to try it, without leaving the shell.
Done:
forge pullsreadsGET /api/v1/repos/:owner/:name/pulls(open, newest first) through a newpullsmethod insrc/cli/api.ts, with the repository from--repo owner/nameor the current folder'soriginremote when it points at the configured workbench (reuse the helper if one has landed insrc/cli).#N, the title cut to the terminal width, the author, the check (green, red, running or none) and, when the API gives one, the preview address.--closedlists closed pulls instead;--jsonprints the API's answer unchanged; no open pull printsNo open pulls.and exits 0.--repoprints one line saying so and exits 2.forge helplists the command.test/cli-pulls.test.ts) against a fake API checks the lines,--closed, the empty case and the exit codes.Files:
src/cli/main.ts,src/cli/api.ts, a new test.