feat: added gitea backend support
This commit is contained in:
parent
c8ce379aed
commit
5ddc973a3d
7 changed files with 165 additions and 37 deletions
|
|
@ -27,7 +27,7 @@ func fetchRepositoriesGitlab() ([]Repository, error) {
|
|||
}
|
||||
|
||||
url := fmt.Sprintf("https://%s/api/v4/projects?%s&%s&%s%s",
|
||||
gitlabHost, membership, order, perpage, archived)
|
||||
gitHost, membership, order, perpage, archived)
|
||||
|
||||
logger.Print("HTTP: Creating API request", nil)
|
||||
req, err := http.NewRequest("GET", url, nil)
|
||||
|
|
@ -36,7 +36,7 @@ func fetchRepositoriesGitlab() ([]Repository, error) {
|
|||
}
|
||||
|
||||
logger.Print("HTTP: Adding PRIVATE-TOKEN header to API request", nil)
|
||||
req.Header.Set("PRIVATE-TOKEN", gitlabToken)
|
||||
req.Header.Set("PRIVATE-TOKEN", gitToken)
|
||||
|
||||
logger.Print("HTTP: Making request", nil)
|
||||
client := &http.Client{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue