#8 add config.
This commit is contained in:
parent
79793f2bf7
commit
f8a129d0aa
@ -39,7 +39,7 @@ type Gitea struct {
|
|||||||
func NewGitea(cfg configcli.Config) *Gitea {
|
func NewGitea(cfg configcli.Config) *Gitea {
|
||||||
return &Gitea{
|
return &Gitea{
|
||||||
URL: cfg.Source.APIURL,
|
URL: cfg.Source.APIURL,
|
||||||
Token: os.Getenv("GITEA_TOKEN"),
|
Token: os.Getenv("gitea_token"),
|
||||||
PRTitle: cfg.PullRequestTitle,
|
PRTitle: cfg.PullRequestTitle,
|
||||||
PRBody: cfg.PullRequestBody,
|
PRBody: cfg.PullRequestBody,
|
||||||
Repository: cfg.Source.Repository,
|
Repository: cfg.Source.Repository,
|
||||||
|
Loading…
Reference in New Issue
Block a user