Skip to content
Source
Sign inSign up

Share with a reviewer

Issues and pull requests / Stacks and private work

Share a private pull request

You work on a private pull request, and you want feedback from a person outside the team before the change is public. A share shows this one pull request to that person, read only. They get no access to the repository.

5 min read

You need:

  • Write access to the public repository.
  • A private pull request of that repository.

1. Open the Share dialog

  1. Open the private pull request.
  2. Click Share, next to Copy link.

You see Share only on a private pull request, and only with write access.

2. Pick who can read it

Under Share with, pick one:

  • Anyone with the link: a link that works for everyone who has it, signed in or not. It expires after 1, 7 or 30 days.
  • People on Source: the accounts that you name. Their share works until you stop it. Each person gets a notification in the header. Nobody gets an email.

3. Pick what they can see

Under They can see, pick one:

  • The page: the title, the description, the conversation, the commits, the diff of Files and the status of each check.
  • Everything: the page, and also the CI run pages, the job pages, the logs, the findings, the timing and the artifacts. It also shows the agent run pages and their logs for this pull request, but not the runs of the agents that read the intent (see below).

4. Make the share

For a link:

  1. Pick the days in The link expires after. The default is 7 days.
  2. Optional: type a Label, for example Ana's review. Use at most 100 characters. You cannot change the label later.
  3. Click Make link.
  4. Copy the link, and send it to the reviewer.

Important

The dialog shows the link only once. If you lose it, stop it and make a new one.

For people:

  1. Type a username, then click Add. Do this for each person, up to 50 at once.
  2. Click Share with people.

Done

The reviewer reads the pull request and its changes. They cannot comment, review, react, push, merge or change anything. The comment box tells them: "This pull request was shared with you to read. You can't comment on it."

The share keeps working after a merge or a close, until it expires or you stop it.

Open a shared pull request

Someone shared a pull request with you, and you want to read it.

  • You got a link: open it in a browser. You do not need to sign in. The link works only in a browser: REST, MCP and git refuse it.
  • You got a notification: click it in the header. You read the pull request with your own login, on the web, with src pr view, and over REST and MCP.

When the share expires or a writer stops it, the page answers "not found".

What a share never shows

  • The runs and the logs of a hidden workflow. Only admins see them.
  • Held items and held comments.
  • The agent transcripts of the author, the intent summary, and the Intent, Impact and domains tabs.
  • The run pages and the logs of the agents that read the intent summary or the transcripts: audit, review, the fixer, CI self-heal, the conflict fixer, the merge queue, impact and domains. A log can quote them.
  • Secrets.
  • The private companion: its branches, its clone and its files.

The page of a share reader also has no stack, no labels and no factory panel.

The images and videos of the description and the visible comments show, also the ones in the assets of the private companion. The share opens only the files that the pull request shows, and only while the share works.

Stop a share

On the web:

  1. Open the pull request, then click Share.
  2. Find the share in the list. A link shows its label as its title. A link with no label shows "Link made" and its date.
  3. Click Stop next to that share. The state of each share is Live, Expired or Stopped.

In a terminal:

src pr share 12 --list
src pr share 12 --revoke <id>

Later: from a terminal or an agent

Only people share pull requests. Your own src login works, and so does your own token over MCP or REST. An agent session token or a job token gets 403: "Agents and jobs cannot share pull requests".

You want tosrcMCP toolREST, under /api/v1/repos/{owner}/{repo}
Make a link for 7 dayssrc pr share 12 --link --days 7create_pull_request_share, with kind: "link" and days: 7POST /pulls/{n}/shares, body {"kind": "link", "days": 7}
Give a link a labelsrc pr share 12 --link --label "Ana's review"create_pull_request_share, with kind: "link", days: 7 and labelPOST /pulls/{n}/shares, body {"kind": "link", "days": 7, "label": "Ana's review"}
Share with peoplesrc pr share 12 --user ana,bencreate_pull_request_share, with kind: "people" and usersPOST /pulls/{n}/shares, body {"kind": "people", "users": ["ana", "ben"]}
List the sharessrc pr share 12 --listlist_pull_request_sharesGET /pulls/{n}/shares
Stop a sharesrc pr share 12 --revoke <id>revoke_pull_request_shareDELETE /pulls/{n}/shares/{id}
  • Add --level everything (src) or "level": "everything" (MCP and REST) to show everything. The default is page.
  • MCP and REST need days (1, 7 or 30) for a link. src uses 7 when you leave out --days.
  • A label works only for a link, with at most 100 characters. The list shows it: the Label column of src pr share 12 --list, and label in MCP and REST.
  • See Use the REST API for the answers and the refusals.