From 06acd91781451675737c45c81cfeec5c49e77617 Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Wed, 19 Mar 2025 10:00:58 +0200 Subject: [PATCH] pass base branch to lazygit pr command --- home/common/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/common/default.nix b/home/common/default.nix index f9c7404..d133a95 100644 --- a/home/common/default.nix +++ b/home/common/default.nix @@ -241,7 +241,7 @@ context = "global"; command = '' git push --force-with-lease --set-upstream origin "{{.SelectedLocalBranch.Name}}" && - gh pr create --title "{{.SelectedLocalBranch.Name}}" --fill || + gh pr create --title "{{.SelectedLocalBranch.Name}}" -B "$(git config get init.defaultBranch)" --fill || (git log --reverse --no-merges --pretty='- %s' master..HEAD | gh pr edit --body-file -); gh pr view --web '';