This a .NET Core Global Tool that ..
-
Given your terminals working directory is a git repo
-
That git repo has a remote that is a code collaboration tool (ex.
origin
-> GitHub/BitBucket/GitLab/Azure DevOps) -
Opens your default browser in the Pull Request UI for the current branch in the tool connected to the remote branch.
- Running the tool: .NET 7 or 8
- Development: .NET 8 SDK
$ dotnet tool install dotnet-pr -g
After install, navigate to a git repo and call pr
from the terminal.
- debug output
$ pr --debug
- Target the PR towards another branch than
master
(default)
$ pr <your-target-branch-here>
- github.com
- bitbucket.org
- gitlab.com
- dev.azure.com (Azure DevOps, dev.azure.com/{org})
- dev.azure.com (Azure DevOps Private, {org}.visualstudio.com)
- (Bitbucket (Self-Hosted))