Skip to content

Include commit and project ids in Tanuki bot

What does this MR do and why?

To support the inclusion of project_id and commit_id in the AI::Action mutation, we need to make these attributes accessible within the Duo Chat component on the commit page.

This MR updates the ee/app/views/layouts/_tanuki_bot_chat.html.haml file to include these attributes.

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image.png image.png

How to set up and validate locally

  1. Visit a commit page (example).
  2. Open the developer tools.
  3. In the Sources tab check that within the js-tanuki-bot-chat-app element the project_id and correct resource_id is present.
<div data-project-id="gid://gitlab/Project/2" data-resource-id="gid://gitlab/Commit/6d394385cf567f80a8fd85055db1ab4c5295806f" data-user-id="gid://gitlab/User/1" id="js-tanuki-bot-chat-app"></div>

Related to #468460 (closed)

Edited by Eva Kadlecová

Merge request reports

Loading