add gerrit pattern for commit url

This commit is contained in:
bkellam 2025-10-29 13:42:23 -07:00
parent ecadb9629e
commit e50f0a2cd6

View file

@ -345,6 +345,7 @@ export const getCodeHostCommitUrl = ({
case 'bitbucket-server':
return `${webUrl}/commits/${commitHash}`;
case 'gerrit':
return `${webUrl}/+/${commitHash}`;
case 'generic-git-host':
return undefined;
}
@ -376,7 +377,6 @@ export const getCodeHostBrowseAtBranchUrl = ({
return `${webUrl}?at=${branchName}`;
case 'bitbucket-server':
return `${webUrl}?at=${branchName}`;
case 'gerrit':
case 'generic-git-host':
return undefined;
}