Skip to content

Commit 5eb6549

Browse files
authored
Merge pull request cli#11896 from cli/kw/fix-agent-task-targets-fork
`gh agent-task create`: Fix targetting upstream instead of default repo
2 parents c8152ed + 8840df2 commit 5eb6549

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cmd/root/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) (*cobra.Command,
127127
cmd.AddCommand(versionCmd.NewCmdVersion(f, version, buildDate))
128128
cmd.AddCommand(accessibilityCmd.NewCmdAccessibility(f))
129129
cmd.AddCommand(actionsCmd.NewCmdActions(f))
130-
cmd.AddCommand(agentTaskCmd.NewCmdAgentTask(f))
131130
cmd.AddCommand(aliasCmd.NewCmdAlias(f))
132131
cmd.AddCommand(authCmd.NewCmdAuth(f))
133132
cmd.AddCommand(attestationCmd.NewCmdAttestation(f))
@@ -150,6 +149,7 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) (*cobra.Command,
150149
repoResolvingCmdFactory := *f
151150
repoResolvingCmdFactory.BaseRepo = factory.SmartBaseRepoFunc(f)
152151

152+
cmd.AddCommand(agentTaskCmd.NewCmdAgentTask(&repoResolvingCmdFactory))
153153
cmd.AddCommand(browseCmd.NewCmdBrowse(&repoResolvingCmdFactory, nil))
154154
cmd.AddCommand(prCmd.NewCmdPR(&repoResolvingCmdFactory))
155155
cmd.AddCommand(orgCmd.NewCmdOrg(&repoResolvingCmdFactory))

0 commit comments

Comments
 (0)