Pull Request mode

A Finish option for repositories where master and develop are protected: instead of merging locally, the extension pushes the branch and opens the pull requests. Review and merge stay in human hands.

When to use it

Local merge (default)Pull Request (option)
Branches protected on the serverPush refused✅ Designed for it
Code review—✅ On the platform
Speed✅ ImmediateAfter the PR is approved
Remote requiredNo (or any remote)GitHub or Azure DevOps

You choose at each Finish in the Finish dialog. To pre-select Pull Request on a repository, set "Default Finish mode" in the settings.

Requirements

"No git credentials for dev.azure.com"

Sign in once by running git ls-remote <repository url> in a terminal: the Git Credential Manager sign-in window opens. Then try again.

A feature through a PR

  1. Start and develop the feature as usual (guide).
  2. Finish…: choose Pull Request. The push and delete-on-origin options disappear: they are not used in PR mode.
  3. The next screen shows the generated title and description for each PR, editable.
  4. OK: the extension pushes the branch, then creates the PR feature/x → develop. If one is already open, it is reused and your new commits go into it. Nothing is merged locally.
  5. Get it reviewed and merge the PR on the platform (preferably without fast-forward, see squash).
  6. In the GitFlow window: Refresh PRs, then Complete branch.

The generated message

Built from git only (deterministic, no AI). The title follows the convention Feature: name / Release 1.5.0 / Hotfix 1.5.1. The description:

**Feature** `feature/ABC-12-login` → `develop`

### Commits (2)
- Add the login page
- Fix the button style (#42)

### Files
5 file(s) changed, 120 line(s) added, 8 line(s) deleted

### Tickets
ABC-12, #42

For a release or a hotfix, a Version section reminds you of the tag that will be created after the merge.

Customizing

Tracking PRs

GitFlow▾ ✕
Pull requestsRefresh PRs
release/1.5.0
#12 → mastermergedOpen
#13 → developopenOpen
Create tag 1.5.0

A Pull requests section appears in the window as soon as a PR is tracked: one row per PR, with its state (open, merged, closed without merge) and an Open button for the browser.

The state is read from the platform at most once a minute while the window is visible, or immediately with Refresh PRs.

The extension never approves or merges a PR.

Release and hotfix: the tag

A release opens two PRs: to master and to develop. So does a hotfix, to master then to develop (or to the release in progress).

The tag can only be created once the PR to master is merged, on its merge commit:

  1. Merge the PR to master on the platform.
  2. Refresh PRs: the Create tag 1.5.0 button appears.
  3. The extension fetches master, checks that the merge commit is on origin/master, creates the annotated tag (with the message entered at Finish) and pushes it.

Complete branch also creates the tag if it is missing, when both PRs are already merged.

Complete branch

When all the PRs of a branch are merged, Complete branch:

  1. creates the tag if it is a release or a hotfix and the tag is missing;
  2. runs git fetch (or git fetch --prune if the option is checked in the settings);
  3. updates your local develop / master, fast-forward only;
  4. deletes the local branch with git branch -d and forgets its PRs;
  5. leaves you on develop (or on the release in progress).
"Squash" or "rebase" merge

In that case, the commits of your branch are not in develop: the extension detects it and does not delete the branch. Delete it yourself if you are sure. To avoid this, choose a regular merge (Merge / Merge (no fast-forward)).

Branches on the server

Complete does not delete the branch on the server: check Delete branch after merging (Azure) or enable Automatically delete head branches (GitHub). With the git fetch --prune option, the matching origin/… references then disappear from your machine on their own.

GitHub and Azure DevOps

GitHubAzure DevOps
Remote URLhttps://github.com/org/repo.git
git@github.com:org/repo.git
https://dev.azure.com/org/project/_git/repo
git@ssh.dev.azure.com:v3/org/project/repo
https://org.visualstudio.com/project/_git/repo
Credentialsgit's credentials for github.comgit's credentials for dev.azure.com (Microsoft account or personal access token)
Protected branchesBranch protection rulesBranch policies
Delete the branch after mergeDelete branch on the PR, or repository settingDelete … after merging checkbox on Complete

With an ssh remote, the extension still asks the Git Credential Manager for https credentials to call the API: sign in once over https if needed.

Company Azure DevOps server

The URLs of an Azure DevOps server installed in a company (Azure DevOps Server, formerly TFS) cannot be recognised automatically, for example https://tfs.company.com/tfs/Collection/Project/_git/Repo. In that case, check "Pull Request: origin is an Azure DevOps server" in the settings.