refactor: Enhance Gitea repository handling and clean up token refresh logic

- Updated Gitea repository cloning to use the remote variant for better consistency.
- Removed unnecessary logging and comments in the token refresh function to streamline the code.
- Improved type handling in the cloneGiteaRepository function for better clarity.
This commit is contained in:
Mauricio Siu
2025-03-23 03:35:02 -06:00
parent 9359ee7a04
commit a067abd3e4
2 changed files with 8 additions and 34 deletions

View File

@@ -14,7 +14,10 @@ import {
cloneGitRawRepository,
cloneRawGitRepositoryRemote,
} from "../providers/git";
import { cloneRawGiteaRepository } from "../providers/gitea";
import {
cloneRawGiteaRepository,
cloneRawGiteaRepositoryRemote,
} from "../providers/gitea";
import {
cloneRawGithubRepository,
cloneRawGithubRepositoryRemote,
@@ -62,7 +65,7 @@ export const cloneComposeRemote = async (compose: Compose) => {
} else if (compose.sourceType === "git") {
await cloneRawGitRepositoryRemote(compose);
} else if (compose.sourceType === "gitea") {
await cloneRawGiteaRepository(compose);
await cloneRawGiteaRepositoryRemote(compose);
} else if (compose.sourceType === "raw") {
await createComposeFileRawRemote(compose);
}