Updated Custom Commands Compendium (markdown)

Jesse Duffield 2020-11-21 15:37:01 +11:00
parent 3883aa4755
commit e3c77f3ad0

@ -48,4 +48,17 @@ customCommands:
loadingText: "Creating pull request on GitHub"
```
## Checkout branch via Github Pull Request id
```
customCommands:
- key: "v" # couldn't think of a better keybinding
prompts:
- type: 'input'
title: 'PR id:'
command: "hub pr checkout {{index .PromptResponses 0}}"
context: "localBranches"
loadingText: "checking out PR"
```
This can be customized to fit your needs. Run `gh pr create --help` to see what flags are available.