Create Pull Requests with ease from the command line.
Currently only GitHub, GitLab and Azure DevOps are supported
Do the following to setup the pr alias (you'll currently need to clone this repo)
notepad.exe $profile
Import-Module C:\path-to-module\git-pr\git-pr.psm1Add something like this to your profile: function pr() { git-pr }
. $PROFILE or RefreshEnv
If this doesn't work, you may need to restart your shell
By default, the target branch will be master if you don't specify one. If you want to change & save a different target branch (i.e. if you're working of a develop branch or a feature branch), set the pr.base config by running git config git-pr.base my-branch or changing your your repo's .gitconfig to the following:
pr-base my-branch
This can be configured per repo.
Run
git-pr
(or set up your own an alias!)
from your shell (whilst in a git directory) to open your browser ready to create a pull request, setting the source to the current branch and target to either master or the branch stored in your repo's git config
Just run git-repo to open the remote repository in your browser
github-search MySearchTerm
run Invoke-Pester .\all-tests.ps1
You will need to install Pester for running unit tests:
Find-Module pester -Repository psgallery | Install-Module