Skip to content

Commit 754dc10

Browse files
author
Nate Smith
authored
Merge pull request cli#3468 from cli/actions-remote
include magic repo resolution magic for workflow and run
2 parents aea6163 + 9ebcca7 commit 754dc10

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkg/cmd/root/root.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command {
7373

7474
// Child commands
7575
cmd.AddCommand(versionCmd.NewCmdVersion(f, version, buildDate))
76+
cmd.AddCommand(actionsCmd.NewCmdActions(f))
7677
cmd.AddCommand(aliasCmd.NewCmdAlias(f))
7778
cmd.AddCommand(authCmd.NewCmdAuth(f))
7879
cmd.AddCommand(configCmd.NewCmdConfig(f))
@@ -82,10 +83,6 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command {
8283
cmd.AddCommand(secretCmd.NewCmdSecret(f))
8384
cmd.AddCommand(sshKeyCmd.NewCmdSSHKey(f))
8485

85-
cmd.AddCommand(actionsCmd.NewCmdActions(f))
86-
cmd.AddCommand(runCmd.NewCmdRun(f))
87-
cmd.AddCommand(workflowCmd.NewCmdWorkflow(f))
88-
8986
// the `api` command should not inherit any extra HTTP headers
9087
bareHTTPCmdFactory := *f
9188
bareHTTPCmdFactory.HttpClient = bareHTTPClient(f, version)
@@ -100,6 +97,8 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command {
10097
cmd.AddCommand(issueCmd.NewCmdIssue(&repoResolvingCmdFactory))
10198
cmd.AddCommand(releaseCmd.NewCmdRelease(&repoResolvingCmdFactory))
10299
cmd.AddCommand(repoCmd.NewCmdRepo(&repoResolvingCmdFactory))
100+
cmd.AddCommand(runCmd.NewCmdRun(&repoResolvingCmdFactory))
101+
cmd.AddCommand(workflowCmd.NewCmdWorkflow(&repoResolvingCmdFactory))
103102

104103
// Help topics
105104
cmd.AddCommand(NewHelpTopic("environment"))

0 commit comments

Comments
 (0)