You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gh stack link does not respect the default branch of a repository #260
When linking an existing stack with gh link 1 2 3 and --base is not given, it defaults to main not the default repository branch. As a result, the first PR of the stack is retargeted to main and currently there is no easy way to change the base of the stack.
Activity
skarim commentedon Jul 22, 2026
linkcurrently has a hardcoded default to main:gh-stack/cmd/link.go
Line 80 in 38aba1b
but it should follow the same dynamic base branch resolution that is used in
init:gh-stack/cmd/init.go
Line 75 in 38aba1b