File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 88from pathlib import Path
99from typing import TYPE_CHECKING
1010
11+ import git
12+
1113from codeflash .api import cfapi
1214from codeflash .api .aiservice import AiServiceClient , LocalAiServiceClient
1315from codeflash .cli_cmds .console import console , logger , progress_bar
@@ -89,11 +91,12 @@ def run(self) -> None:
8991 if not env_utils .check_formatter_installed (self .args .formatter_cmds ):
9092 return
9193
92- owner , repo = get_repo_owner_and_name ()
94+ repo = git .Repo (search_parent_directories = True )
95+ owner , repo_name = get_repo_owner_and_name (repo )
9396
9497 pr_number = get_pr_number ()
9598 if pr_number is not None :
96- pr_info = cfapi .get_pr_info (owner , repo , pr_number )
99+ pr_info = cfapi .get_pr_info (owner , repo_name , pr_number )
97100 if pr_info is None :
98101 logger .warning (f"Could not find { owner } /{ repo } #{ pr_number } ." )
99102 return
You can’t perform that action at this time.
0 commit comments