Skip to content

Commit eca39b5

Browse files
committed
fix/-nobackend-options
1 parent 98f2155 commit eca39b5

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Digger github app installed</title>
6+
<meta name="description" content="">
7+
<meta name="author" content="">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
</head>
10+
<body>
11+
<div class="container">
12+
<section class="header">
13+
<h1 class="title-heading">App installation successful</h1>
14+
<p>You can now close this tab.</p>
15+
</section>
16+
</div>
17+
</body>
18+
</html>

ee/cli/cmd/digger/root.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func PreRun(cmd *cobra.Command, args []string) {
9090
log.Println("WARNING: running in 'backendless' mode. Features that require backend will not be available.")
9191
PolicyChecker = policy.NoOpPolicyChecker{}
9292
BackendApi = backend.NoopApi{}
93-
} else if os.Getenv("DIGGER_TOKEN") != "" {
93+
} else {
9494
if os.Getenv("DIGGER_ORGANISATION") == "" {
9595
log.Fatalf("Token specified but missing organisation: DIGGER_ORGANISATION. Please set this value in action digger_config.")
9696
}
@@ -104,8 +104,6 @@ func PreRun(cmd *cobra.Command, args []string) {
104104
AuthToken: os.Getenv("DIGGER_TOKEN"),
105105
HttpClient: http.DefaultClient,
106106
}
107-
} else {
108-
reportErrorAndExit("", "DIGGER_TOKEN not specified. You can get one at https://cloud.digger.dev, or self-manage a backend of Digger Community Edition (change DIGGER_HOSTNAME). You can also pass 'no-backend: true' option; in this case some of the features may not be available.", 1)
109107
}
110108

111109
if os.Getenv("REPORTING_STRATEGY") == "comments_per_run" || os.Getenv("ACCUMULATE_PLANS") == "true" {

0 commit comments

Comments
 (0)