Skip to content

Modify aiAction mutation to accept method specific input

Patrick Bajao requested to merge pb-expand-ai-action-mutation into summarize_notes

What does this MR do and why?

To support different use cases via the aiAction mutation, this changes the signature of the mutation to accept a specific input type per action.

Example usage:

aiAction(
  input: {
    summarizeComments: { issuableId: "gid://gid://gitlab/Issue/7" }
  }
) {
  errors
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports