You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: cmd/server.go
+53-13
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,10 @@ const (
25
25
GHTokenFlag="gh-token"
26
26
GHUserFlag="gh-user"
27
27
GHWebHookSecret="gh-webhook-secret"
28
+
GitlabHostnameFlag="gitlab-hostname"
29
+
GitlabTokenFlag="gitlab-token"
30
+
GitlabUserFlag="gitlab-user"
31
+
GitlabWebHookSecret="gitlab-webhook-secret"
28
32
LogLevelFlag="log-level"
29
33
PortFlag="port"
30
34
RequireApprovalFlag="require-approval"
@@ -49,19 +53,42 @@ var stringFlags = []stringFlag{
49
53
description: "Hostname of your Github Enterprise installation. If using github.com, no need to set.",
50
54
value: "github.com",
51
55
},
56
+
{
57
+
name: GHUserFlag,
58
+
description: "GitHub username of API user.",
59
+
},
52
60
{
53
61
name: GHTokenFlag,
54
-
description: "[REQUIRED] GitHub token of API user. Can also be specified via the ATLANTIS_GH_TOKEN environment variable.",
62
+
description: "GitHub token of API user. Can also be specified via the ATLANTIS_GH_TOKEN environment variable.",
55
63
env: "ATLANTIS_GH_TOKEN",
56
64
},
57
65
{
58
-
name: GHUserFlag,
59
-
description: "[REQUIRED] GitHub username of API user.",
66
+
name: GHWebHookSecret,
67
+
description: "Optional secret used to validate GitHub webhooks (see https://developer.github.com/webhooks/securing/)."+
68
+
" If not specified, Atlantis won't be able to validate that the incoming webhook call came from GitHub. "+
69
+
"Can also be specified via the ATLANTIS_GH_WEBHOOK_SECRET environment variable.",
70
+
env: "ATLANTIS_GH_WEBHOOK_SECRET",
71
+
},
72
+
{
73
+
name: GitlabHostnameFlag,
74
+
description: "Hostname of your GitLab Enterprise installation. If using gitlab.com, no need to set.",
75
+
value: "gitlab.com",
60
76
},
61
77
{
62
-
name: GHWebHookSecret,
63
-
description: "Optional secret used for GitHub webhooks (see https://developer.github.com/webhooks/securing/). If not specified, Atlantis won't validate the incoming webhook call.",
64
-
env: "ATLANTIS_GH_WEBHOOK_SECRET",
78
+
name: GitlabUserFlag,
79
+
description: "GitLab username of API user.",
80
+
},
81
+
{
82
+
name: GitlabTokenFlag,
83
+
description: "GitLab token of API user. Can also be specified via the ATLANTIS_GITLAB_TOKEN environment variable.",
84
+
env: "ATLANTIS_GITLAB_TOKEN",
85
+
},
86
+
{
87
+
name: GitlabWebHookSecret,
88
+
description: "Optional secret used to validate GitLab webhooks."+
89
+
" If not specified, Atlantis won't be able to validate that the incoming webhook call came from GitLab. "+
90
+
"Can also be specified via the ATLANTIS_GITLAB_WEBHOOK_SECRET environment variable.",
91
+
env: "ATLANTIS_GITLAB_WEBHOOK_SECRET",
65
92
},
66
93
{
67
94
name: LogLevelFlag,
@@ -206,7 +233,7 @@ func (s *ServerCmd) run() error {
0 commit comments