File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -204,9 +204,9 @@ def create_staging(
204204 generated_original_test_source : str ,
205205 function_trace_id : str ,
206206 coverage_message : str ,
207- replay_tests : str = "" ,
208- concolic_tests : str = "" ,
209- root_dir : Optional [ Path ] = None ,
207+ replay_tests : str ,
208+ concolic_tests : str ,
209+ root_dir : Path ,
210210) -> Response :
211211 """Create a staging pull request, targeting the specified branch. (usually 'staging').
212212
Original file line number Diff line number Diff line change @@ -1244,15 +1244,16 @@ def process_review(
12441244 "coverage_message" : coverage_message ,
12451245 "replay_tests" : replay_tests ,
12461246 "concolic_tests" : concolic_tests ,
1247+ "root_dir" : self .project_root ,
12471248 }
12481249
12491250 raise_pr = not self .args .no_pr
12501251
12511252 if raise_pr and not self .args .staging_review :
12521253 data ["git_remote" ] = self .args .git_remote
1253- check_create_pr (** data , root_dir = self . project_root )
1254+ check_create_pr (** data )
12541255 elif self .args .staging_review :
1255- create_staging (** data , root_dir = self . project_root )
1256+ create_staging (** data )
12561257 else :
12571258 # Mark optimization success since no PR will be created
12581259 mark_optimization_success (
Original file line number Diff line number Diff line change @@ -183,8 +183,8 @@ def check_create_pr(
183183 coverage_message : str ,
184184 replay_tests : str ,
185185 concolic_tests : str ,
186+ root_dir : Path ,
186187 git_remote : Optional [str ] = None ,
187- root_dir : Optional [Path ] = None ,
188188) -> None :
189189 pr_number : Optional [int ] = env_utils .get_pr_number ()
190190 git_repo = git .Repo (search_parent_directories = True )
You can’t perform that action at this time.
0 commit comments