mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 16:13:15 +00:00
* feat(open-swe): trigger reviewer agent from `@open-swe review` PR comment Mirrors the Slack `@open-swe review` flow on GitHub: a comment containing `@open-swe review` (optionally followed by a PR URL) on a PR triggers the reviewer agent. Without a URL it reviews the commenting PR; with a URL it targets that PR. Works for `issue_comment`, `pull_request_review_comment`, and `pull_request_review` events, gated by the existing reviewer repo allowlist and reusing `trigger_pr_review_from_ref`. * fix(open-swe): require URL after `@open-swe review`, don't swallow trailing text The previous regex matched any non-whitespace token after `review`, including across newlines. Comments like `@open-swe review\nthanks!` parsed as `(True, "thanks!")`, which then failed PR-URL parsing and was silently dropped — the user got no review and the comment never reached the regular PR-comment handler. Restrict the optional URL token to `https?://\S+` so non-URL trailing text falls through to `process_github_pr_comment` instead of being eaten by the review-command branch. Adds regression tests for the multiline and trailing-word cases. |
||
|---|---|---|
| .. | ||
| test_auth_sources.py | ||
| test_daytona_integration.py | ||
| test_ensure_no_empty_msg.py | ||
| test_github_comment_prompts.py | ||
| test_github_issue_webhook.py | ||
| test_http_security.py | ||
| test_multimodal.py | ||
| test_notify_step_limit_middleware.py | ||
| test_proxy_auth.py | ||
| test_recent_comments.py | ||
| test_repo_extraction.py | ||
| test_reviewer.py | ||
| test_reviewer_diff.py | ||
| test_reviewer_findings.py | ||
| test_reviewer_publish.py | ||
| test_reviewer_tools.py | ||
| test_reviewer_watch.py | ||
| test_sandbox_paths.py | ||
| test_sanitize_tool_inputs.py | ||
| test_slack_context.py | ||