#8 add config.

This commit is contained in:
Gorbunov Kirill Andreevich 2024-03-17 15:49:59 +03:00
parent 383779b530
commit 6e4ebb0437

View File

@ -42,7 +42,7 @@ type Gitea struct {
func NewGitea(cfg configcli.Config) *Gitea {
return &Gitea{
URL: cfg.Source.APIURL,
Token: os.Getenv("GITEA_TOKEN"),
Token: os.Getenv("gitea_token"),
PRTitle: cfg.PullRequestTitle,
PRBody: cfg.PullRequestBody,
Repository: cfg.Source.Repository,