Skip to content

fix: AI analysis runs on /approve cancel #1006

Closed

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

Activity

  1. added a commit that references this issue on Mar 1, 2026
    8585312
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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