Copy commit SHA Button behaviour is inconsistent on job view - copies short sha instead full sha

Summary

Besides every commit sha there is a small button to copy the sha of it. When on the main project view is copies the full/long sha, on a pipeline view it takes the short 8-digit sha.

I know, this is not a critical thing, but it bothers me as i currently rely on the sha on some workflow design and sometimes having a full, other times a short is kind of irritating.

Steps to reproduce

Go to a job view - i took the freshest of gitlab-ce: https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/169307891 and click the copy sha button next to the commit.

You can also simply use the developer tools within your browser to have a look at the data-clipboard-text field of those both:

Bildschirmfoto_2019-02-28_um_13.41.40 Bildschirmfoto_2019-02-28_um_13.41.40

Example Project

see above.

What is the current bug behavior?

Now you have a short SHA within your clipboard.

What is the expected correct behavior?

You should have a "long" commit id / sha in your clipboard

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)

Output of checks

This bug happens on GitLab.com

Possible fixes

i guess it is based somewhere here? https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/views/projects/pipelines/_info.html.haml#L67