Provide a full commit sha to `CommitReferences` query

What does this MR do and why?

Contributes to #471689 (closed)

Problem

In rare situtations, short commit hashes (first 8 characters) can be identical for different commits. Usage of short commit hash will lead to ambiguous error.

Solution

Use full commit sha for CommitReferences query to avoid an ambiguous error.

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-07-17_at_14.06.46 Screenshot_2024-07-17_at_14.05.38

How to set up and validate locally

  1. Visit http://gdk.test:3000/gitlab-org/gitlab-test/-/commit/ddd0f15ae83993f5cb66a927a28673882e99100b page
  2. CommitReferences query should have a full commit sha
Edited by Vasilii Iakliushin

Merge request reports

Loading