Commit 27326ac6 authored by Stan Hu's avatar Stan Hu

Associate Rakefile with Ruby icon in diffs

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52654
parent 4127b357
...@@ -549,6 +549,7 @@ const fileNameIcons = { ...@@ -549,6 +549,7 @@ const fileNameIcons = {
jenkinsfile: 'jenkins', jenkinsfile: 'jenkins',
'firebase.json': 'firebase', 'firebase.json': 'firebase',
'.firebaserc': 'firebase', '.firebaserc': 'firebase',
Rakefile: 'ruby',
'rollup.config.js': 'rollup', 'rollup.config.js': 'rollup',
'rollup.config.ts': 'rollup', 'rollup.config.ts': 'rollup',
'rollup-config.js': 'rollup', 'rollup-config.js': 'rollup',
...@@ -583,7 +584,5 @@ const fileNameIcons = { ...@@ -583,7 +584,5 @@ const fileNameIcons = {
}; };
export default function getIconForFile(name) { export default function getIconForFile(name) {
return fileNameIcons[name] || return fileNameIcons[name] || fileExtensionIcons[name ? name.split('.').pop() : ''] || '';
fileExtensionIcons[name ? name.split('.').pop() : ''] ||
'';
} }
---
title: Associate Rakefile with Ruby icon in diffs
merge_request:
author:
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment