mirror of
https://github.com/harness/drone.git
synced 2025-05-21 19:39:59 +08:00
commit
5f3e65cf87
@ -110,7 +110,7 @@ var serverCmd = cli.Command{
|
|||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
EnvVar: "DRONE_GITHUB_SECRET",
|
EnvVar: "DRONE_GITHUB_SECRET",
|
||||||
Name: "github-sercret",
|
Name: "github-secret",
|
||||||
Usage: "github oauth2 client secret",
|
Usage: "github oauth2 client secret",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
@ -203,7 +203,7 @@ var serverCmd = cli.Command{
|
|||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
EnvVar: "DRONE_GITLAB_SECRET",
|
EnvVar: "DRONE_GITLAB_SECRET",
|
||||||
Name: "gitlab-sercret",
|
Name: "gitlab-secret",
|
||||||
Usage: "gitlab oauth2 client secret",
|
Usage: "gitlab oauth2 client secret",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
|
@ -80,7 +80,7 @@ func setupGitlab(c *cli.Context) (remote.Remote, error) {
|
|||||||
return gitlab.New(gitlab.Opts{
|
return gitlab.New(gitlab.Opts{
|
||||||
URL: c.String("gitlab-server"),
|
URL: c.String("gitlab-server"),
|
||||||
Client: c.String("gitlab-client"),
|
Client: c.String("gitlab-client"),
|
||||||
Secret: c.String("gitlab-sercret"),
|
Secret: c.String("gitlab-secret"),
|
||||||
Username: c.String("gitlab-git-username"),
|
Username: c.String("gitlab-git-username"),
|
||||||
Password: c.String("gitlab-git-password"),
|
Password: c.String("gitlab-git-password"),
|
||||||
PrivateMode: c.Bool("gitlab-private-mode"),
|
PrivateMode: c.Bool("gitlab-private-mode"),
|
||||||
@ -94,7 +94,7 @@ func setupGithub(c *cli.Context) (remote.Remote, error) {
|
|||||||
URL: c.String("github-server"),
|
URL: c.String("github-server"),
|
||||||
Context: c.String("github-context"),
|
Context: c.String("github-context"),
|
||||||
Client: c.String("github-client"),
|
Client: c.String("github-client"),
|
||||||
Secret: c.String("github-sercret"),
|
Secret: c.String("github-secret"),
|
||||||
Scopes: c.StringSlice("github-scope"),
|
Scopes: c.StringSlice("github-scope"),
|
||||||
Username: c.String("github-git-username"),
|
Username: c.String("github-git-username"),
|
||||||
Password: c.String("github-git-password"),
|
Password: c.String("github-git-password"),
|
||||||
|
Loading…
Reference in New Issue
Block a user