fix: fix forgot parsing GITHUB_TOKEN
This commit is contained in:
@@ -47,6 +47,9 @@ func (repo *ZexlabRepository) Init(config map[string]string) error {
|
||||
}
|
||||
|
||||
token := config["token"]
|
||||
if token == "" {
|
||||
token = os.Getenv("GITHUB_TOKEN")
|
||||
}
|
||||
if token == "" {
|
||||
token = os.Getenv("GITEA_TOKEN")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user