Open a pull request

The dialog Open a pull request creates a pull request on the provider of the remote. It needs a configured token, see Set up pull requests.

The dialog opens from several places:

WhereControlSource branch
MenuGit › Open Pull Request…the checked-out branch
Branch context menu in the history, current branchOpen pull request…the current branch
Branch context menu in the history, other branchOpen pull request from "name"…that branch
Notification after a pushCreate PRthe pushed branch

Packages of the Workflow Policy use Open PR… in the Work Packages tab instead. See Work on a package.

Open the pull request

Prerequisite: the source branch is pushed.

  1. Open the dialog, for example with Git › Open Pull Request….
  2. Under From → into, check the source branch and select the target branch.
  3. Check the Title. It defaults to the subject of the latest commit on the source branch.
  4. Optional: enter a Description (optional). Markdown is supported by both providers.
  5. Optional: under Reviewers (optional), click the people who should review. A selected reviewer shows ✓.
  6. Optional: select Open as draft.
  7. Click Create pull request.

The dialog closes when the provider has created the pull request. If you opened it from the menu or a branch context menu, the Git view then switches to the Pull Requests tab.

Defaults and choices

FieldContent
Source branchLocal branches, and under Remote the remote branches that no local branch tracks. A remote branch is sent without its remote prefix.
Target branchLocal branches. The default is develop, then main, then master, whichever exists first.
Reviewers (optional)GitHub: collaborators of the repository. Bitbucket: members of the workspace. With more than 12 people a filter field appears. Selected reviewers stay at the top.
Open as draftGitHub: a native draft. Bitbucket: the title gets the prefix [DRAFT].

Create pull request stays disabled while the title is empty or source and target are the same branch.

The notification after a push

After a push, a notification "Pushed branch" asks whether to open a pull request. Create PR opens the dialog with that branch as source. Not now hides the question for that branch for 24 hours. Without a click, the notification disappears after 12 seconds.