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