Propose upstream
When the crew has worked on your copy of a repository you brought in
(bring, Work on a repository elsewhere), the work goes back to
where the repository is kept as a pull request there.
What you say. In Talk: "open a PR upstream", or "propose hello to GitHub". Talk first plans and tells you, in one sentence, what will happen:
- _Open a pull request on octo/widgets from your copy's hello: the branch is pushed to octo/widgets on GitHub as hello._ Your account there may push to the repository, so the branch goes up into it.
- _… the branch is pushed to your fork you/widgets on GitHub._ Your account may only read it, so the branch goes to your own fork there (made if you have none) and the pull request comes from it.
Someone else changing the same files. The plan reads the origin's open pull
requests (at most 10, your own left out) and names each that changes a file your
branch changes, before the yes: _… ; octo/widgets #9 by maker also changes
src/valid.ts_. It costs one listing and up to 10 diffs at the origin per plan; an
origin that does not answer them leaves the list empty, never the plan refused.
The terminal's Propose upstream (src/tui/screens/proposeupstream.ts) shows the
same sentence.
Your copy's default branch never goes up under the origin's default branch's
name: it goes up as you/main, so a proposal never moves the origin's main.
The title. Talk asks for one, or takes the one you gave: one line, at most 256 characters. Then Talk shows the Do it and Not now buttons with the sentence above; nothing is pushed before your yes. If what the origin says has changed since the plan (you may push now, or no longer), the yes is refused and Talk plans again.
What comes back. The pull request's address at the origin. Its checks and reviews come back to the mirror as the origin's sync reads them.
In the terminal. The palette's Propose upstream asks for your copy (and
a branch after a space), shows the same sentence with Do it and Not now, then
asks for the title and shows the address (src/tui/screens/proposeupstream.ts).
Through MCP. propose_upstream { repo, branch? } plans; the same call with
the answer's plan and a title opens it, held behind a confirm for Talk's
agent. The crew never proposes upstream. Code: planUpstream and
proposeUpstream in src/actions/bring.ts, openPull in
src/actions/pulls.ts. Test: test/talk-bring.test.ts.