this is a partial fix to #378, making the command available outside of a local repo.
promptOpts := survey.WithValidator(survey.Required)
headOwner, headBranch, err := task.GetDefaultPRHead(localRepo)
// TODO: can't we use TeaContext.LocalRepo for this?
I think passing context.TeaContext instead of config.Login in this method would be convenient, as TeaContext already contains the local repo when available.
@6543 In the past you opposed importing modules/context in modules/interact, wdytn?
see no obstacles to use context.TeaContext, but will wait @6543
@noerw can you test - this should now close #378
your changes lgtm. wrt to the refactor, lets do the rest later → #402
No due date set.
Deleting a branch is permanent. It CANNOT be undone. Continue?