A pull request asks to merge the pushed work on one branch into another branch, so your team can review it first. Pull requests live in the Pull Requests tab of Workspaces.
Before you start
- Pull requests work in team projects. A Personal Cloud project shows Pull requests need a team project. A Personal Cloud fork of a team project can still open pull requests to that team project (see Forks).
- Push the work you want to propose. A pull request only includes what is pushed, not what is saved or committed on your computer.
Open a pull request
- Open the Pull Requests tab.
- Under New pull request, choose the branch to merge into in Merge into, and the branch with your work in from.
- Check the title and add a description, such as what changed and what to check.
- Press Create pull request, then Open pull request to confirm.
Opening a pull request doesn't merge, switch or push anything.
Review a pull request
Select a pull request in the list to open it. You see its description, the files it adds, changes and removes, and any files that also changed on the target branch, under Conflicts with target. Press View diff beside a file to compare the two sides.
Read the changed files themselves, not only the description. For schematics and boards, check the parts, nets and board changes, and run ERC and DRC on the result after it merges.
Reviewing never changes your open branch or files.
Merge a pull request
- Open the pull request: select it, or press Review or Merge in the list.
- Press Review merge.
- Read what will be merged, then press Confirm.
Trace merges the branch in the cloud. Your open files don't change; teammates on the target branch get the result when they pull. Only people who can edit the project can merge. Others see that they can review but not merge.
When both branches changed the same files
Build a merge preview first. Trace uses AI to combine the two branches into a new branch, so you can check the merged design before it lands.
- In the pull request, check the Preview branch tag. It starts as the pull
request's number, and the preview branch is named
merge-pr-followed by the tag. - Press Review merge preview, then Confirm. Building a preview may use AI credits, even if it fails.
- When the preview is ready, press Check out published preview to open it in the editor.
- Check the merged schematic and board. Fix anything that needs it, save, then commit and push on the preview branch.
- Back in the pull request, press Review merge, then Confirm. The merge uses what is pushed on the preview branch. Edits you haven't pushed there are not included.
Close a pull request
Press Review close, then Confirm. Closing doesn't merge or switch anything.
Forks
If you can only view a team project, you can still propose changes:
- Press Fork to my projects. Trace makes a copy in your Personal Cloud that you can edit.
- Work on the fork and push.
- Open a pull request from the fork: pick a branch of the fork in from and a branch of the team project in Merge into.
To bring the team's newer changes into your fork, press Sync from upstream. If a file changed on both sides, choose Take upstream or Keep fork for it, then press Apply sync.
Merges the assistant asks for
In Agent mode, the assistant can ask to open, close or merge a pull request, or to build a merge preview. Each request shows a review card in the chat that asked; nothing happens until you press Approve. From Trace 3.2, when you confirm a merge the assistant asked for, the Workspaces window shows that it finished. If a request expires before you answer, the card says that nothing ran.
On Autopilot, the assistant opens, previews and merges pull requests without a card, unless you switch Saves, commits, and opens and merges pull requests off. Closing a pull request always asks.
If a merge doesn't confirm
If Trace doesn't hear back about a merge, the pull request shows Check again. Press it to ask what happened. It never merges twice, so don't press Review merge again with a new request.
To stop that merge before it takes effect, press Cancel merge attempt, then Confirm cancellation. This stops only that attempt. It doesn't close the pull request, and if the merge already finished, Trace tells you so.
More fixes: If something goes wrong.