Skip to content
Source
Sign inSign up

Make it public

Issues and pull requests / Stacks and private work

Make a private pull request public

Your private pull request is ready for the community. You want people to review it, or to read how the change was made.

2 min read

Make public moves its branch into the public repository. The pull request keeps its number, its comments and its reviews, and everyone can see it from then on. It works on an open pull request and on a merged one.

You need permission to merge pull requests in the repository.

Caution

You cannot make the pull request private again. All of this becomes public:

  • The branch and its commits.
  • The comments and the reviews.
  • The CI runs and their logs.
  • The results of the factory agents.
  • The images and videos of the description and the comments. The forge copies the ones in the assets of the private companion to the attachments/ folder of the public repository, and changes their links.

1. Make it public

On the web:

  1. Open the pull request.
  2. At the bottom of the Status tab of the right column, click Make public.
  3. Read the warning, then click Make public.

In a terminal:

src pr edit 12 --visibility public

The Private badge goes away. The timeline says that you made the pull request public.

2. Push to the public branch from now on

Your clone still sends git push from this branch to the private companion. Send it to origin:

git config --unset branch.v1.pushRemote
git push -u origin v1

If nobody pushed new commits to the branch in the companion, the forge deletes it there.

Done

Everyone can read the pull request, its conversation and its CI logs. It keeps its number, so the old links still work. Your next git push goes to the public branch.

When the forge refuses

  • The pull request is closed. Reopen it, then make it public.
  • The public repository has a branch with the same name. Delete or rename that branch, then try again.
  • A branch rule refuses a new branch with that name. The message says why.
  • The pull request is public already. There is nothing to do.

Later: from an agent or a script

You want toRESTMCP tool
Make a private pull request publicPOST /api/v1/repos/{owner}/{repo}/pulls/{n}/make-publicmake_pull_request_public

A pull request that you cannot read gets 404. Every other refusal gets 405, with the reason in error.