Fall back to the git author name in item attribution

What does this MR do and why?

Skill versions come from git commits, so the commit author is not always a GitLab user. In that case createdBy is null, and the attribution shows "Unknown".

This MR fetches authorName on AiCatalogSkillVersion in the shared item fragment. When a version has no createdBy user, the attribution shows the git author name, without a profile link. Agents and flows always have createdBy, so they do not change.

This is MR 4 of the split of !260396 (closed). All parts are behind the ai_catalog_skills flag (default off).

# MR Status
1 Add routes for AI catalog skills !266269 (merged) ✅ Merged
2 Add Skills project sidebar menu item !267449 (merged) ✅ Merged
3 Register skill as an AI catalog item type !267460 (merged) ✅ Merged
4 Fall back to the git author name in item attribution 👈 You are here
5 Support skills in the version alert and enable disclaimer !268927 (merged)
6 Add skills routes to the Explore and project Vue routers !267907 (merged) ✅ Merged
7 Add Skills tab to the Explore AI catalog !268368 (merged)
8 Add the skill details page !268788 (merged)

References

Screenshots or screen recordings

No UI changes. Skill pages come in later MRs.

How to set up and validate locally

No UI changes. The spec covers the fallback.

MR acceptance checklist

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

Edited by Justin Ho Tuan Duong

Merge request reports

Loading
Loading