We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4ecc45 commit 3c0800fCopy full SHA for 3c0800f
cmd/nightfalldlp/main.go
@@ -14,7 +14,7 @@ import (
14
const (
15
nightfallConfigFileName = ".nightfalldlp/config.json"
16
githubActionsEnvVar = "GITHUB_ACTIONS"
17
- githubTokenEnvVar = "NIGHTFALL_GITHUB_TOKEN"
+ githubTokenEnvVar = "GITHUB_TOKEN"
18
)
19
20
// main starts the service process.
@@ -69,7 +69,7 @@ func CreateDiffReviewerClient() (diffreviewer.DiffReviewer, error) {
69
case usingGithubAction():
70
githubToken, ok := os.LookupEnv(githubTokenEnvVar)
71
if !ok {
72
- return nil, errors.New("missing github token in env")
+ return nil, fmt.Errorf("could not find required %s environment variable", githubTokenEnvVar)
73
}
74
return github.NewAuthenticatedGithubService(githubToken), nil
75
default:
0 commit comments