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