Handle Work Item URLs in Duo Chat

What does this MR do and why?

Add support for using work_items URLs for epics in Duo Chat.

Related AI Gateway MR: gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!1430 (merged)

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. Run GDK and AI Gateway.
  2. Create a new epic.
  3. Take the epic path and substitute epics in the path with work_items - so you will have path like so: http://127.0.0.1:3000/groups/gitlab-org/-/work_items/11 (currently the work item is created but you are always redirected to the epics path).
  4. Ask Duo Chat a question about the work item: "Summarize this epic: WORK_ITEM_PATH"
  5. You should get an answer about your epic.

Related to #473410 (closed)

Edited by Eva Kadlecová

Merge request reports

Loading