@@ -174,11 +174,11 @@ type CodeHostInfo = {
174174}
175175
176176export const getCodeHostInfoForRepo = ( repo : {
177- codeHostType : string ,
177+ codeHostType : CodeHostType ,
178178 name : string ,
179179 displayName ?: string ,
180180 webUrl ?: string ,
181- } ) : CodeHostInfo | undefined => {
181+ } ) : CodeHostInfo => {
182182 const { codeHostType, name, displayName, webUrl } = repo ;
183183
184184 switch ( codeHostType ) {
@@ -226,8 +226,7 @@ export const getCodeHostInfoForRepo = (repo: {
226226 iconClassName : className ,
227227 }
228228 }
229- case 'gerrit' :
230- case 'gitiles' : {
229+ case 'gerrit' : {
231230 const { src, className } = getCodeHostIcon ( 'gerrit' ) ! ;
232231 return {
233232 type : "gerrit" ,
@@ -238,7 +237,7 @@ export const getCodeHostInfoForRepo = (repo: {
238237 iconClassName : className ,
239238 }
240239 }
241- case "bitbucket-server " : {
240+ case "bitbucketServer " : {
242241 const { src, className } = getCodeHostIcon ( 'bitbucketServer' ) ! ;
243242 return {
244243 type : "bitbucketServer" ,
@@ -249,7 +248,7 @@ export const getCodeHostInfoForRepo = (repo: {
249248 iconClassName : className ,
250249 }
251250 }
252- case "bitbucket-cloud " : {
251+ case "bitbucketCloud " : {
253252 const { src, className } = getCodeHostIcon ( 'bitbucketCloud' ) ! ;
254253 return {
255254 type : "bitbucketCloud" ,
@@ -260,7 +259,7 @@ export const getCodeHostInfoForRepo = (repo: {
260259 iconClassName : className ,
261260 }
262261 }
263- case "generic-git-host " : {
262+ case "genericGitHost " : {
264263 const { src, className } = getCodeHostIcon ( 'genericGitHost' ) ! ;
265264 return {
266265 type : "genericGitHost" ,
0 commit comments