Associate Rakefile with Ruby icon in diffs
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52654
This commit is contained in:
parent
4127b35788
commit
27326ac62c
|
|
@ -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() : ''] || '';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Associate Rakefile with Ruby icon in diffs
|
||||
merge_request:
|
||||
author:
|
||||
type: other
|
||||
Loading…
Reference in New Issue