Skip to content

Commit 9c37f96

Browse files
committed
log the staging link
1 parent 53ecd83 commit 9c37f96

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)