From 30471cbfe6dacc2f25fd06acbd8ca09248071c23 Mon Sep 17 00:00:00 2001 From: Jesse Haka Date: Fri, 6 Mar 2020 09:31:11 +0200 Subject: [PATCH] use package without tokens --- core/config.go | 8 +------- core/session.go | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/core/config.go b/core/config.go index e1bfe8c..c6ce267 100644 --- a/core/config.go +++ b/core/config.go @@ -1,11 +1,9 @@ package core import ( - "errors" "io/ioutil" "os" "path" - "strings" "gopkg.in/yaml.v3" ) @@ -61,9 +59,5 @@ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error { return err } - if len(c.GitHubAccessTokens) < 1 || strings.TrimSpace(strings.Join(c.GitHubAccessTokens, "")) == "" { - return errors.New("You need to provide at least one GitHub Access Token. See https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line") - } - return nil -} +} \ No newline at end of file diff --git a/core/session.go b/core/session.go index 932aeb5..00fc3c2 100644 --- a/core/session.go +++ b/core/session.go @@ -76,7 +76,7 @@ func (s *Session) InitGitHubClients() { } if len(s.Clients) < 1 { - s.Log.Fatal("No valid GitHub tokens provided. Quitting!") + s.Log.Error("No valid GitHub tokens provided. You need to provide at least one GitHub Access Token. See https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line") } }