File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ class GithubClient:
2525 @classmethod
2626 def from_repo_config (cls , repo_config : RepoConfig ) -> Self :
2727 gh_wrapper = cls ()
28- gh_wrapper .read_client = gh_wrapper ._create_client_for_repo (repo_config , github_scope = GithubScope .READ )
29- gh_wrapper ._write_client = gh_wrapper ._create_client_for_repo (repo_config , github_scope = GithubScope .WRITE )
28+ gh_wrapper .read_client = gh_wrapper ._create_client_for_repo_config (repo_config , github_scope = GithubScope .READ )
29+ gh_wrapper ._write_client = gh_wrapper ._create_client_for_repo_config (repo_config , github_scope = GithubScope .WRITE )
3030 return gh_wrapper
3131
3232 @classmethod
@@ -37,7 +37,7 @@ def from_token(cls, token: str | None = None) -> Self:
3737 gh_wrapper ._write_client = Github (token , base_url = cls .base_url )
3838 return gh_wrapper
3939
40- def _create_client_for_repo (self , repo_config : RepoConfig , github_scope : GithubScope = GithubScope .READ ) -> Github :
40+ def _create_client_for_repo_config (self , repo_config : RepoConfig , github_scope : GithubScope = GithubScope .READ ) -> Github :
4141 token = get_token_for_repo_config (repo_config = repo_config , github_type = self .type , github_scope = github_scope )
4242 return Github (token , base_url = self .base_url )
4343
You can’t perform that action at this time.
0 commit comments