1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 00:09:40 +02:00

fix(git): incorrect git commit url for bitbucket [EE-6446] (#10855)

This commit is contained in:
Oscar Zhou 2024-01-12 08:22:50 +13:00 committed by GitHub
parent c6505a6647
commit bb680ef20a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 49 additions and 36 deletions

View file

@ -3,7 +3,7 @@ import _ from 'lodash';
import { isoDateFromTimestamp } from '@/portainer/filters/filters';
import { isBE } from '@/react/portainer/feature-flags/feature-flags.service';
import { cleanGitRepoUrl } from '@/react/portainer/gitops/utils';
import { GitCommitLink } from '@/react/portainer/gitops/GitCommitLink';
import { buildNameColumn } from '@@/datatables/buildNameColumn';
import { Link } from '@@/Link';
@ -145,15 +145,10 @@ export const columns = _.compact([
if (item.GitConfig) {
return (
<div className="text-center">
<a
target="_blank"
href={`${cleanGitRepoUrl(item.GitConfig.URL)}/commit/${
item.GitConfig.ConfigHash
}`}
rel="noreferrer"
>
{item.GitConfig.ConfigHash.slice(0, 7)}
</a>
<GitCommitLink
baseURL={item.GitConfig.URL}
commitHash={item.GitConfig.ConfigHash}
/>
</div>
);
}