Skip to content

Commit c38536e

Browse files
chore: clean-up get token for repo config (#51)
1 parent a23bc99 commit c38536e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/codegen/git/configs/token.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
from codegen.git.configs.config import config
44
from codegen.git.schemas.github import GithubType
5-
from codegen.git.schemas.repo_config import RepoConfig
65

76
logger = logging.getLogger(__name__)
87

98

10-
def get_token_for_repo_config(repo_config: RepoConfig, github_type: GithubType = GithubType.GithubEnterprise) -> str:
9+
def get_token_for_repo_config(github_type: GithubType = GithubType.GithubEnterprise) -> str:
1110
if github_type == GithubType.GithubEnterprise:
1211
return config.LOWSIDE_TOKEN
1312
elif github_type == GithubType.Github:

src/codegen/git/utils/clone_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_authenticated_clone_url_for_repo_config(
2424
github_type: GithubType = GithubType.GithubEnterprise,
2525
) -> str:
2626
git_url = get_clone_url_for_repo_config(repo, github_type)
27-
token = get_token_for_repo_config(repo_config=repo, github_type=github_type)
27+
token = get_token_for_repo_config(github_type=github_type)
2828
return f"https://x-access-token:{token}@{git_url}"
2929

3030

0 commit comments

Comments
 (0)