Associate Rakefile with Ruby icon in diffs

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52654
This commit is contained in:
Stan Hu 2018-10-13 16:15:46 -07:00
parent 4127b35788
commit 27326ac62c
2 changed files with 7 additions and 3 deletions

View File

@ -549,6 +549,7 @@ const fileNameIcons = {
jenkinsfile: 'jenkins',
'firebase.json': 'firebase',
'.firebaserc': 'firebase',
Rakefile: 'ruby',
'rollup.config.js': 'rollup',
'rollup.config.ts': 'rollup',
'rollup-config.js': 'rollup',
@ -583,7 +584,5 @@ const fileNameIcons = {
};
export default function getIconForFile(name) {
return fileNameIcons[name] ||
fileExtensionIcons[name ? name.split('.').pop() : ''] ||
'';
return fileNameIcons[name] || fileExtensionIcons[name ? name.split('.').pop() : ''] || '';
}

View File

@ -0,0 +1,5 @@
---
title: Associate Rakefile with Ruby icon in diffs
merge_request:
author:
type: other