Skip to content

Commit 4700e41

Browse files
authored
Merge branch 'main' into organize-admin-setting
2 parents 6430927 + 52fb936 commit 4700e41

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1156
-751
lines changed

assets/go-licenses.json

+8-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/actions.go

+9-8
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,31 @@ import (
99
"code.gitea.io/gitea/modules/private"
1010
"code.gitea.io/gitea/modules/setting"
1111

12-
"github.com/urfave/cli"
12+
"github.com/urfave/cli/v2"
1313
)
1414

1515
var (
1616
// CmdActions represents the available actions sub-commands.
17-
CmdActions = cli.Command{
17+
CmdActions = &cli.Command{
1818
Name: "actions",
1919
Usage: "",
2020
Description: "Commands for managing Gitea Actions",
21-
Subcommands: []cli.Command{
21+
Subcommands: []*cli.Command{
2222
subcmdActionsGenRunnerToken,
2323
},
2424
}
2525

26-
subcmdActionsGenRunnerToken = cli.Command{
26+
subcmdActionsGenRunnerToken = &cli.Command{
2727
Name: "generate-runner-token",
2828
Usage: "Generate a new token for a runner to use to register with the server",
2929
Action: runGenerateActionsRunnerToken,
3030
Aliases: []string{"grt"},
3131
Flags: []cli.Flag{
32-
cli.StringFlag{
33-
Name: "scope, s",
34-
Value: "",
35-
Usage: "{owner}[/{repo}] - leave empty for a global runner",
32+
&cli.StringFlag{
33+
Name: "scope",
34+
Aliases: []string{"s"},
35+
Value: "",
36+
Usage: "{owner}[/{repo}] - leave empty for a global runner",
3637
},
3738
},
3839
}

0 commit comments

Comments
 (0)