From e3c77f3ad025e93f6e5eb42990046b93accae69a Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 21 Nov 2020 15:37:01 +1100 Subject: [PATCH] Updated Custom Commands Compendium (markdown) --- Custom-Commands-Compendium.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Custom-Commands-Compendium.md b/Custom-Commands-Compendium.md index 129e2a6..ca33d7b 100644 --- a/Custom-Commands-Compendium.md +++ b/Custom-Commands-Compendium.md @@ -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. \ No newline at end of file