Skip to content

Commit 15387af

Browse files
committed
Updated message that displays in terminal when codeflash creates a PR
1 parent c080680 commit 15387af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

codeflash/result/create_pr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ def check_create_pr(
132132
coverage_message=coverage_message,
133133
)
134134
if response.ok:
135-
logger.info(f"Successfully created a new PR #{response.text} with the optimized code.")
135+
pr_number = response.text
136+
pr_url = f"https://github.com/{owner}/{repo}/pull/{pr_number}"
137+
logger.info(f"Successfully created a new PR #{pr_number} with the optimized code: {pr_url}")
136138
else:
137139
logger.error(
138140
f"Optimization was successful, but I failed to create a PR with the optimized code."

0 commit comments

Comments
 (0)