Skip to content

Commit 2fd0f76

Browse files
Add pr_url metadata to Laminar logging in PR review bot (#2068)
Co-authored-by: openhands <openhands@all-hands.dev>
1 parent d7b3617 commit 2fd0f76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/03_github_workflows/02_pr_review/agent_script.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,10 +850,12 @@ def main():
850850
parent_span_context=laminar_span_context,
851851
) as _:
852852
# Set trace metadata within this active span context
853+
pr_url = f"https://github.com/{pr_info['repo_name']}/pull/{pr_info['number']}"
853854
Laminar.set_trace_metadata(
854855
{
855856
"pr_number": pr_info["number"],
856857
"repo_name": pr_info["repo_name"],
858+
"pr_url": pr_url,
857859
"workflow_phase": "review",
858860
"review_style": review_style,
859861
}

0 commit comments

Comments
 (0)