open-swe/agent
Johannes du Plessis 7e1746f420
feat(open-swe): trigger reviewer from @open-swe review PR comment (#1259)
* 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.
2026-05-07 17:04:35 -07:00
..
integrations feat: move github workflows to gh cli (#1238) 2026-05-04 18:03:53 -07:00
middleware feat: add reviewer graph + eval target wiring (#1241) 2026-05-06 10:15:58 -07:00
tools feat(open-swe): post review summary to Slack on first review (#1258) 2026-05-07 16:11:36 -07:00
utils feat(open-swe): trigger reviewer from @open-swe review PR comment (#1259) 2026-05-07 17:04:35 -07:00
encryption.py chore: Drop monorepo (#1029) 2026-03-06 16:10:34 -08:00
prompt.py chore: prevent leaking private repo info in PR descriptions (#1254) 2026-05-07 14:29:42 -07:00
reviewer.py fix(open-swe): host-format the review summary, drop agent prose (#1257) 2026-05-07 15:41:40 -07:00
reviewer_diff.py feat: implement reviewer findings, publish_review, and watch mode (#1253) 2026-05-07 14:48:43 -07:00
reviewer_findings.py feat(open-swe): post review summary to Slack on first review (#1258) 2026-05-07 16:11:36 -07:00
reviewer_publish.py fix(open-swe): host-format the review summary, drop agent prose (#1257) 2026-05-07 15:41:40 -07:00
server.py start sandbox before proxy refresh (#1249) 2026-05-07 11:26:25 -07:00
webapp.py feat(open-swe): trigger reviewer from @open-swe review PR comment (#1259) 2026-05-07 17:04:35 -07:00