diff --git a/Custom-Commands-Compendium.md b/Custom-Commands-Compendium.md index 862c136..817e745 100644 --- a/Custom-Commands-Compendium.md +++ b/Custom-Commands-Compendium.md @@ -78,6 +78,22 @@ customCommands: stream: yes ``` +## Open Existing Github Pull Request in Browser + +In the branches panel, opens the PR for the selected branch; in the commits panel, opens the PR for the currently checked out branch. + +```yml +customCommands: + - key: "G" + command: "gh pr view -w {{.SelectedLocalBranch.Name}}" + context: "localBranches" + description: "Open Github PR in browser" + - key: "G" + command: "gh pr view -w" + context: "commits" + description: "Open Github PR in browser" +``` + ## Open Existing GitLab Pull Request in Browser ```yml