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 |
---|---|
How to set up and validate locally
- Visit a commit page (example).
- Open the developer tools.
- In the Sources tab check that within the
js-tanuki-bot-chat-app
element theproject_id
and correctresource_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á