docs(pr create): clarify comment on head branch syntax

This commit is contained in:
Kynan Ware 2025-03-10 14:55:39 -06:00
parent e999976b3d
commit d524cbddc2

View file

@ -599,7 +599,7 @@ func NewCreateContext(opts *CreateOptions) (*CreateContext, error) {
promptForHeadRepo = false
targetHeadBranch = opts.HeadBranch
// If the --head provided contains a colon, that means
// this is <repo_name>:<branch> syntax.
// this is <owner>:<branch> syntax.
if idx := strings.IndexRune(opts.HeadBranch, ':'); idx >= 0 {
targetHeadRepoOwner = opts.HeadBranch[:idx]
targetHeadBranch = opts.HeadBranch[idx+1:]