Skip to content

Commit a792c3f

Browse files
chore: rename to from repo config (#262)
1 parent 474ead4 commit a792c3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/codegen/git/clients/github_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)