#8 delete parse env in gitea.

This commit is contained in:
Gorbunov Kirill Andreevich
2024-03-31 16:12:56 +03:00
parent f59bc384eb
commit 4eaed8781b
2 changed files with 3 additions and 4 deletions

View File

@@ -8,7 +8,6 @@ import (
"fmt"
"io"
"net/http"
"os"
"os/exec"
"regexp"
"strings"
@@ -39,7 +38,7 @@ type Gitea struct {
func NewGitea(cfg configcli.Config) *Gitea {
return &Gitea{
URL: cfg.Source.APIURL,
Token: os.Getenv("gitea_token"),
Token: cfg.Source.Token,
PRTitle: cfg.PullRequestTitle,
PRBody: cfg.PullRequestBody,
Repository: cfg.Source.Repository,