Fix blame for sha256 repositories

What does this MR do and why?

Contributes to #463860 (closed)

Problem

Blame code uses a regular expression that doesn't support SHA256 commits (size: 64 characters).

Solution

Extend a regular expression to accept both SHA1 and SHA256 commits.

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
Screenshot_2024-09-02_at_13.26.01 Screenshot_2024-09-02_at_11.52.35

How to set up and validate locally

  1. Create a new project with SHA256 repository

Screenshot_2024-09-02_at_13.26.40

  1. Open README.md
  2. Click on Blame button
  3. You should see blame information
Edited by Vasilii Iakliushin

Merge request reports

Loading