|
|
@@ -234,7 +234,23 @@ class RevisionSection extends Component<PropsType, StateType> {
|
|
|
>
|
|
|
<Td>{revision.version}</Td>
|
|
|
<Td>{this.readableDate(revision.info.last_deployed)}</Td>
|
|
|
- <Td>{parsedImageTag || "N/A"}</Td>
|
|
|
+ <Td>
|
|
|
+ {!imageTag ? (
|
|
|
+ "N/A"
|
|
|
+ ) : isGithubApp && /[0-9A-Fa-f]+/g.test(imageTag) ? (
|
|
|
+ <A
|
|
|
+ href={`https://github.com/${this.props.chart.git_action_config?.git_repo}/commit/${imageTag}`}
|
|
|
+ target="_blank"
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation();
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {parsedImageTag}
|
|
|
+ </A>
|
|
|
+ ) : (
|
|
|
+ parsedImageTag
|
|
|
+ )}
|
|
|
+ </Td>
|
|
|
<Td>v{revision.chart.metadata.version}</Td>
|
|
|
<Td>
|
|
|
<RollbackButton
|
|
|
@@ -536,3 +552,9 @@ const RevisionUpdateMessage = styled.div`
|
|
|
transform: none;
|
|
|
}
|
|
|
`;
|
|
|
+
|
|
|
+const A = styled.a`
|
|
|
+ color: #8590ff;
|
|
|
+ text-decoration: underline;
|
|
|
+ cursor: pointer;
|
|
|
+`;
|