File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from codegen .git .configs .config import config
4
4
from codegen .git .schemas .github import GithubType
5
- from codegen .git .schemas .repo_config import RepoConfig
6
5
7
6
logger = logging .getLogger (__name__ )
8
7
9
8
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 :
11
10
if github_type == GithubType .GithubEnterprise :
12
11
return config .LOWSIDE_TOKEN
13
12
elif github_type == GithubType .Github :
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def get_authenticated_clone_url_for_repo_config(
24
24
github_type : GithubType = GithubType .GithubEnterprise ,
25
25
) -> str :
26
26
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 )
28
28
return f"https://x-access-token:{ token } @{ git_url } "
29
29
30
30
You can’t perform that action at this time.
0 commit comments