Description
The test oracle (AI analysis) is triggered even when the approve label is being removed via /approve cancel. It should only run when approving, not when cancelling.
Root Cause
In issue_comment_handler.py line 358, the check if _command == APPROVE_STR: doesn't account for the remove flag set when the command includes cancel.
Fix
Add and not remove to the condition.
Deliverables
Description
The test oracle (AI analysis) is triggered even when the approve label is being removed via
/approve cancel. It should only run when approving, not when cancelling.Root Cause
In
issue_comment_handler.pyline 358, the checkif _command == APPROVE_STR:doesn't account for theremoveflag set when the command includescancel.Fix
Add
and not removeto the condition.Deliverables