Skip to content

Instantly share code, notes, and snippets.

@PaulTaykalo
Created June 13, 2019 05:16
Show Gist options
  • Save PaulTaykalo/7d926fc72ea0d9d8afa1284d68b041fd to your computer and use it in GitHub Desktop.
Save PaulTaykalo/7d926fc72ea0d9d8afa1284d68b041fd to your computer and use it in GitHub Desktop.
Hub Pull Requests aliases
# Creates pull request on develop branch with specified message (second line is desciption)
function hubd {
hub pull-request -b develop -m $1
}
# Creates pull request on master branch with specified message (second line is desciption)
function hubm {
hub pull-request -b master -m $1
}
# Show all open pull requests
function hubprl {
hub pr list -f "%Cyellow %U%sC%>(8)%i%Creset %t %n"
}
# Show pull requests for current brach
function hubprc {
hub pr list -h `git symbolic-ref --short HEAD` -f "%Cyellow %U%n%sC%>(8)%i%Creset %t %n"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment