Skip to content

Add diff_by_file_hash merge request action

Stanislav Lashmanov requested to merge slashmanov/add-pinned-file-api into master

What does this MR do and why?

Add backend API for Pin file when linking to a file line in an MR (#387246 - closed).

This MR adds a diff_by_file_hash merge request action which accepts file_hash and returns a diff file for a given hash.

How to set up and validate locally

  1. Checkout this branch
  2. Apply changes from Add pinned file to merge requests (!137544 - merged)
  3. Enable pinned_file feature flag
  4. Open any merge request with at least 2 files changed
  5. Open a link to some line of the second file in a new tab
  6. File should become pinned in the new tab

MR acceptance checklist

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

Merge request reports