Skip to content

Commit 30471cb

Browse files
committed
use package without tokens
1 parent f4fdbda commit 30471cb

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

core/config.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
package core
22

33
import (
4-
"errors"
54
"io/ioutil"
65
"os"
76
"path"
8-
"strings"
97

108
"gopkg.in/yaml.v3"
119
)
@@ -61,9 +59,5 @@ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
6159
return err
6260
}
6361

64-
if len(c.GitHubAccessTokens) < 1 || strings.TrimSpace(strings.Join(c.GitHubAccessTokens, "")) == "" {
65-
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")
66-
}
67-
6862
return nil
69-
}
63+
}

core/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (s *Session) InitGitHubClients() {
7676
}
7777

7878
if len(s.Clients) < 1 {
79-
s.Log.Fatal("No valid GitHub tokens provided. Quitting!")
79+
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")
8080
}
8181
}
8282

0 commit comments

Comments
 (0)