jesseduffield.lazygit/pkg
Stefan Haller cef1f8fc2c If multiple remotes exist but only one is a Github remote, pick it without prompting
If the repo has multiple remotes, but only one of them is on Github (the others
might for example point to a self-hosted Critic server or something like that),
lazygit would still present a menu to choose the remote for pull requests, but
it would contain only that single entry. That's pointless, pick it automatically
without prompting.

We add some tests while we're at it; these wouldn't have caught the problem,
because they only test getGithubBaseRemote which already takes the filtered
github remotes. It's still better than not having any tests; the real issue
could only have been caught with an integration test, which we don't bother
adding.
2026-04-26 16:55:51 +02:00
..
app Pass todo flag to EditRebaseTodo 2026-01-28 10:15:51 +01:00
cheatsheet refactor: use strings.Builder and strings.Repeat to simplify code 2025-12-03 18:34:21 +01:00
commands Tolerate trailing newlines in AddCoAuthorToDescription 2026-04-21 18:51:17 +02:00
common Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
config Add condition field to custom command prompts 2026-04-06 19:14:51 +02:00
constants Make the links in the status panel point to the current version rather than master 2024-03-22 08:13:59 +01:00
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes Modernize all codes 2025-11-15 10:46:23 +01:00
gui If multiple remotes exist but only one is a Github remote, pick it without prompting 2026-04-26 16:55:51 +02:00
i18n Update translations from Crowdin 2026-04-06 19:29:09 +02:00
integration Preserve whitespace when remembering a commit message 2026-04-21 18:51:17 +02:00
jsonschema Modernize all codes 2025-11-15 10:46:23 +01:00
logs Clean up build tags 2025-08-14 20:40:44 +02:00
snake Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00
tasks Modernize all codes 2025-11-15 10:46:23 +01:00
theme Highlight inactive selection in bold 2024-06-23 14:43:13 +02:00
updates Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
utils Pass todo flag to EditRebaseTodo 2026-01-28 10:15:51 +01:00