From 870e7c470cb4953cf54b7fa2fe517897819147df Mon Sep 17 00:00:00 2001 From: Christine Wang Date: Mon, 3 Feb 2025 15:30:27 -0800 Subject: [PATCH] chore: rename to from repo config --- src/codegen/git/clients/github_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/codegen/git/clients/github_client.py b/src/codegen/git/clients/github_client.py index 70d34f7dc..099342fa0 100644 --- a/src/codegen/git/clients/github_client.py +++ b/src/codegen/git/clients/github_client.py @@ -25,8 +25,8 @@ class GithubClient: @classmethod def from_repo_config(cls, repo_config: RepoConfig) -> Self: gh_wrapper = cls() - gh_wrapper.read_client = gh_wrapper._create_client_for_repo(repo_config, github_scope=GithubScope.READ) - gh_wrapper._write_client = gh_wrapper._create_client_for_repo(repo_config, github_scope=GithubScope.WRITE) + gh_wrapper.read_client = gh_wrapper._create_client_for_repo_config(repo_config, github_scope=GithubScope.READ) + gh_wrapper._write_client = gh_wrapper._create_client_for_repo_config(repo_config, github_scope=GithubScope.WRITE) return gh_wrapper @classmethod @@ -37,7 +37,7 @@ def from_token(cls, token: str | None = None) -> Self: gh_wrapper._write_client = Github(token, base_url=cls.base_url) return gh_wrapper - def _create_client_for_repo(self, repo_config: RepoConfig, github_scope: GithubScope = GithubScope.READ) -> Github: + def _create_client_for_repo_config(self, repo_config: RepoConfig, github_scope: GithubScope = GithubScope.READ) -> Github: token = get_token_for_repo_config(repo_config=repo_config, github_type=self.type, github_scope=github_scope) return Github(token, base_url=self.base_url)