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) |
| 2 | Add Skills project sidebar menu item | !267449 (merged) |
| 3 | Register skill as an AI catalog item type | !267460 (merged) |
| 4 | Fall back to the git author name in item attribution | |
| 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) |
| 7 | Add Skills tab to the Explore AI catalog | !268368 (merged) |
| 8 | Add the skill details page | !268788 (merged) |
References
- Related #630880 (closed)
- Epic: gitlab-org#22961
- Rollout issue: #630885
- Split from !260396 (closed)
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.