File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 53
53
)
54
54
from codeflash .code_utils .env_utils import get_pr_number
55
55
from codeflash .code_utils .formatter import format_code , sort_imports
56
+ from codeflash .code_utils .git_utils import git_root_dir
56
57
from codeflash .code_utils .instrument_existing_tests import inject_profiling_into_existing_test
57
58
from codeflash .code_utils .line_profile_utils import add_decorator_imports
58
59
from codeflash .code_utils .static_analysis import get_first_top_level_function_or_method_ast
@@ -1301,11 +1302,13 @@ def process_review(
1301
1302
"coverage_message" : coverage_message ,
1302
1303
"replay_tests" : replay_tests ,
1303
1304
"concolic_tests" : concolic_tests ,
1304
- "root_dir" : self .project_root ,
1305
1305
}
1306
1306
1307
1307
raise_pr = not self .args .no_pr
1308
1308
1309
+ if raise_pr or self .args .staging_review :
1310
+ data ["root_dir" ] = git_root_dir ()
1311
+
1309
1312
if raise_pr and not self .args .staging_review :
1310
1313
data ["git_remote" ] = self .args .git_remote
1311
1314
check_create_pr (** data )
You can’t perform that action at this time.
0 commit comments