Skip to content

Integrate blame preferences frontend

What does this MR do and why?

  • Add a method to detect whether or not there is a .git-blame-ignore-revs file in the default branch of the project.
  • Show the checkbox apply the ignore revs to the blame when the file exists

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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

When the file exists:

Screenshot_2025-03-05_at_1.53.48_PM

When the file does not exist:

Screenshot_2025-03-05_at_2.11.48_PM

It looks a little funny but I think we will fix this up in Ignore revs on Blame page - backend/frontend in... (#514684 - closed)

How to set up and validate locally

  1. Enable the blame_ignore_revs feature flag
  2. Create a project and add a .git-blame-ignore-revs file to the default branch
  3. Try removing the file and check that the blame preferences component is not showing the checkbox
Edited by Jerry Seto

Merge request reports

Loading