Skip to content

Render blob blame information for all supported source code languages

Jacques Erasmus requested to merge 430950-render-blob-blame-all-languages into master

What does this MR do and why?

Previously the blame information within the blob viewer was only restricted to JSON files. This MR expands the blob blame information feature to all supported source code languages

Note, the feature is still in development and behind a feature flag.

Screenshots or screen recordings

Before After
Blame toggle was only available to JSON files Blame toggle is available to all source code files
Screenshot_2023-11-28_at_09.52.08 Screenshot_2023-11-28_at_09.52.21

How to set up and validate locally

  1. Enable the graphql_git_blame, blob_blame_info and highlight_js_worker feature flags
  2. Open any source code file via the repository files browser
  3. Click the Blame button in the blob header
  4. Blame info should be rendered

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #430950 (closed)

Edited by Jacques Erasmus

Merge request reports