Просмотр исходного кода

Merge pull request #1118 from porter-dev/0.9.0-revision-commit-link

[0.9.0] Fix highlight commit regex
abelanger5 4 лет назад
Родитель
Сommit
ae9e0b8fe6

+ 1 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/RevisionSection.tsx

@@ -237,7 +237,7 @@ class RevisionSection extends Component<PropsType, StateType> {
           <Td>
             {!imageTag ? (
               "N/A"
-            ) : isGithubApp && /[0-9A-Fa-f]+/g.test(imageTag) ? (
+            ) : isGithubApp && /^[0-9A-Fa-f]{7}$/g.test(imageTag) ? (
               <A
                 href={`https://github.com/${this.props.chart.git_action_config?.git_repo}/commit/${imageTag}`}
                 target="_blank"