File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1247,7 +1247,13 @@ def process_review(
12471247 data ["git_remote" ] = self .args .git_remote
12481248 check_create_pr (** data )
12491249 elif self .args .staging_review :
1250- create_staging (** data )
1250+ response = create_staging (** data )
1251+ if response .status_code == 200 :
1252+ staging_url = f"https://app.codeflash.ai/review-optimizations/{ self .function_trace_id [:- 4 ] + exp_type if self .experiment_id else self .function_trace_id } "
1253+ console .print (f"[bold green]✅ Staging created:[/bold green] [link={ staging_url } ]{ staging_url } [/link]" )
1254+ else :
1255+ console .print (f"[bold red]❌ Failed to create staging [/bold red] — status { response .status_code } " )
1256+
12511257 else :
12521258 # Mark optimization success since no PR will be created
12531259 mark_optimization_success (
You can’t perform that action at this time.
0 commit comments