Skip to content

Send duplicate issue ID with close-issue intents #73054

Open

Description

@alondahari

Summary

When close-issue uses issue-intent: true and a duplicate close is routed for maintainer review, the intent request does not include the canonical issue identifier required by the API. The agent provides duplicate_of (an issue number), but the API requires duplicate_issue_id (the canonical issue's database ID). The request therefore fails with HTTP 422, and no pending suggestion is created for maintainers to accept or decline.

Reproduction

  1. Configure a workflow with close-issue and issue-intent: true.
  2. Have the agent request a duplicate close, including duplicate_of.
  3. Use a repository automation-control policy that routes the close for review.

Actual behavior

The API rejects the intent request with duplicate_issue_id is required when suggesting a close as duplicate. The action does not create a pending suggestion, so maintainers do not see review controls and the issue does not appear in has:Suggestions.

Expected behavior

Resolve duplicate_of to the canonical issue's database ID and include it as duplicate_issue_id in the intent request for duplicate closes. The API should then create the pending suggestion for maintainer review.

Context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions