pass base branch to lazygit pr command

This commit is contained in:
Joakim Repomaa
2025-03-19 10:00:58 +02:00
parent 5c61ebf9ff
commit 06acd91781

View File

@@ -241,7 +241,7 @@
context = "global"; context = "global";
command = '' command = ''
git push --force-with-lease --set-upstream origin "{{.SelectedLocalBranch.Name}}" && 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 -); (git log --reverse --no-merges --pretty='- %s' master..HEAD | gh pr edit --body-file -);
gh pr view --web gh pr view --web
''; '';