Skip to content

Add commit as unavailable resource based on a feature flag

What does this MR do and why?

Send Commit as unavailable resource to AI Gateway based on the ai_commit_reader_for_chat flag.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

image.png

How to set up and validate locally

  1. Enable v2 feature flag
Feature.enable(:v2_chat_agent_integration)
  1. Ask Duo Chat what the unavailable resources are

It should reply with Merge Requests, Pipelines, Vulnerabilities, Commits

  1. Clear chat with /clear
  2. Enable MR support feature flag
Feature.enable(:ai_commit_reader_for_chat)
  1. Ask Duo Chat what the unavailable resources are

It should reply with Pipelines, Vulnerabilities, Merge Requests

Related to #468460 (closed)

Edited by Eva Kadlecová

Merge request reports

Loading