From 999a9ff8c61ec343b301c769eb8cd9c14472c0d3 Mon Sep 17 00:00:00 2001 From: stk Date: Thu, 10 Jul 2025 08:36:03 +0200 Subject: [PATCH] Add commands to open Github PR in browser --- Custom-Commands-Compendium.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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