diff --git a/pkg/cmd/pr/create/create.go b/pkg/cmd/pr/create/create.go index 24f53aaaa..958de2c1f 100644 --- a/pkg/cmd/pr/create/create.go +++ b/pkg/cmd/pr/create/create.go @@ -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 : syntax. + // this is : syntax. if idx := strings.IndexRune(opts.HeadBranch, ':'); idx >= 0 { targetHeadRepoOwner = opts.HeadBranch[:idx] targetHeadBranch = opts.HeadBranch[idx+1:] @@ -636,7 +636,7 @@ func NewCreateContext(opts *CreateOptions) (*CreateContext, error) { return nil, err } - // If the --head provided contains : syntax, we need to use + // If the --head provided contains : syntax, we need to use // the provided owner instead of the owner of the base repository. if targetHeadRepoOwner != "" { prRefs.HeadRepo = ghrepo.New(targetHeadRepoOwner, prRefs.HeadRepo.RepoName()) diff --git a/pkg/cmd/pr/create/create_test.go b/pkg/cmd/pr/create/create_test.go index 049d93f0e..cfe6193c9 100644 --- a/pkg/cmd/pr/create/create_test.go +++ b/pkg/cmd/pr/create/create_test.go @@ -1547,7 +1547,7 @@ func Test_createRun(t *testing.T) { expectedErrOut: "\nCreating pull request for monalisa:task1 into feature/feat2 in OWNER/REPO\n\n", }, { - name: "--head contains : syntax", + name: "--head contains : syntax", httpStubs: func(reg *httpmock.Registry, t *testing.T) { reg.Register( httpmock.GraphQL(`mutation PullRequestCreate\b`), diff --git a/pkg/cmd/pr/shared/finder.go b/pkg/cmd/pr/shared/finder.go index d02377759..7fed231cb 100644 --- a/pkg/cmd/pr/shared/finder.go +++ b/pkg/cmd/pr/shared/finder.go @@ -115,7 +115,7 @@ func (s *PullRequestRefs) HasHead() bool { // GetPRHeadLabel returns the string that the GitHub API uses to identify the PR. This is // either just the branch name or, if the PR is originating from a fork, the fork owner -// and the branch name, like :. +// and the branch name, like :. func (s *PullRequestRefs) GetPRHeadLabel() string { if ghrepo.IsSame(s.HeadRepo, s.BaseRepo) { return s.BranchName