Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/codegen/git/configs/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

from codegen.git.configs.config import config
from codegen.git.schemas.github import GithubType
from codegen.git.schemas.repo_config import RepoConfig

logger = logging.getLogger(__name__)


def get_token_for_repo_config(repo_config: RepoConfig, github_type: GithubType = GithubType.GithubEnterprise) -> str:
def get_token_for_repo_config(github_type: GithubType = GithubType.GithubEnterprise) -> str:
if github_type == GithubType.GithubEnterprise:
return config.LOWSIDE_TOKEN
elif github_type == GithubType.Github:
Expand Down
2 changes: 1 addition & 1 deletion src/codegen/git/utils/clone_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_authenticated_clone_url_for_repo_config(
github_type: GithubType = GithubType.GithubEnterprise,
) -> str:
git_url = get_clone_url_for_repo_config(repo, github_type)
token = get_token_for_repo_config(repo_config=repo, github_type=github_type)
token = get_token_for_repo_config(github_type=github_type)
return f"https://x-access-token:{token}@{git_url}"


Expand Down
Loading