File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1461,14 +1461,12 @@ def process_review(
14611461
14621462 if raise_pr or staging_review :
14631463 data ["root_dir" ] = git_root_dir ()
1464- # try:
1465- # # modify argument of staging vs pr based on the impact
1466- # opt_impact_response = self.aiservice_client.get_optimization_impact(**data)
1467- # if opt_impact_response == "low":
1468- # raise_pr = False
1469- # staging_review = True
1470- # except Exception as e:
1471- # logger.debug(f"optimization impact response failed, investigate {e}")
1464+ opt_impact_response = ""
1465+ try :
1466+ opt_impact_response = self .aiservice_client .get_optimization_impact (** data )
1467+ except Exception as e :
1468+ logger .debug (f"optimization impact response failed, investigate { e } " )
1469+ data ["optimization_impact" ] = opt_impact_response
14721470 if raise_pr and not staging_review :
14731471 data ["git_remote" ] = self .args .git_remote
14741472 check_create_pr (** data )
You can’t perform that action at this time.
0 commit comments