@@ -253,7 +253,7 @@ async def fetch_remote_branch_list(url: str, token: str | None = None) -> list[s
253253
254254 # Add authentication if needed
255255 if token and is_github_host (url ):
256- fetch_branches_command += ["-c" , create_git_auth_header (token , url )]
256+ fetch_branches_command += ["-c" , create_git_auth_header (token , url = url )]
257257
258258 fetch_branches_command += ["ls-remote" , "--heads" , url ]
259259
@@ -274,18 +274,18 @@ def create_git_command(base_cmd: list[str], local_path: str, url: str, token: st
274274 Parameters
275275 ----------
276276 base_cmd : list[str]
277- The base git command to start with
277+ The base git command to start with.
278278 local_path : str
279- The local path where the git command should be executed
279+ The local path where the git command should be executed.
280280 url : str
281- The repository URL to check if it's a GitHub repository
281+ The repository URL to check if it's a GitHub repository.
282282 token : str | None
283- GitHub personal access token for authentication
283+ GitHub personal access token (PAT) for accessing private repositories.
284284
285285 Returns
286286 -------
287287 list[str]
288- The git command with authentication if needed
288+ The git command with authentication if needed.
289289
290290 """
291291 cmd = [* base_cmd , "-C" , local_path ]
@@ -301,15 +301,15 @@ def create_git_auth_header(token: str, url: str = "https://github.com") -> str:
301301 Parameters
302302 ----------
303303 token : str
304- GitHub personal access token
304+ GitHub personal access token (PAT) for accessing private repositories.
305305 url : str
306306 The GitHub URL to create the authentication header for.
307307 Defaults to "https://github.com" if not provided.
308308
309309 Returns
310310 -------
311311 str
312- The git config command for setting the authentication header
312+ The git config command for setting the authentication header.
313313
314314 """
315315 hostname = urlparse (url ).hostname
@@ -323,12 +323,12 @@ def validate_github_token(token: str) -> None:
323323 Parameters
324324 ----------
325325 token : str
326- The GitHub token to validate
326+ GitHub personal access token (PAT) for accessing private repositories.
327327
328328 Raises
329329 ------
330330 InvalidGitHubTokenError
331- If the token format is invalid
331+ If the token format is invalid.
332332
333333 """
334334 if not re .match (GITHUB_PAT_PATTERN , token ):
0 commit comments