Commit ed4cfd9
fix: 修复 review comment 中的 @ 提及未被正确响应的问题
问题原因:
当 GitHub 发送 review comment 的通知时,latest_comment_url 指向的是
review 本身而不是 review comment。由于 review 的 body 为空,导致
find_trigger_node 函数通过 ID 匹配后发现不包含 @WhiteElephantIsNotARobot,
就直接返回 None,而不会继续搜索 review comment 中的 @ 提及。
修复方案:
修改 find_trigger_node 函数,当通过 ID 找到的节点不包含 @ 时,不再立即
返回 None,而是继续在 timeline 中搜索其他包含 @ 的节点(如 review comment)。
Fixes WhiteElephant-abc#136
Co-Authored-By: Claude (mimo-v2-flash) <noreply@anthropic.com>1 parent e9d4de8 commit ed4cfd9
1 file changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
483 | 486 | | |
484 | 487 | | |
485 | 488 | | |
| |||
0 commit comments