Skip to content

fix: AI analysis runs on /approve cancel #1006

@rnetser

Description

@rnetser

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

  • Fix condition in issue_comment_handler.py
  • Add test: test_approve_cancel_does_not_call_test_oracle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions