1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00

fix: add context back to gogs

This commit is contained in:
TheFox0x7 2025-01-25 22:29:18 +01:00
parent 7ef7d60589
commit 3ec351f1ca
No known key found for this signature in database
GPG Key ID: 6CA33903484AF7C2
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,6 @@ func NewGiteaDownloader(ctx context.Context, baseURL, repoPath, username, passwo
}
return &GiteaDownloader{
// ctx: ctx,
client: giteaClient,
baseURL: baseURL,
repoOwner: path[0],

View File

@ -85,8 +85,9 @@ func (g *GogsDownloader) LogString() string {
}
// NewGogsDownloader creates a gogs Downloader via gogs API
func NewGogsDownloader(_ context.Context, baseURL, userName, password, token, repoOwner, repoName string) *GogsDownloader {
func NewGogsDownloader(ctx context.Context, baseURL, userName, password, token, repoOwner, repoName string) *GogsDownloader {
downloader := GogsDownloader{
ctx: ctx,
baseURL: baseURL,
userName: userName,
password: password,