Merge branch 'master' into statuses-for-github-deployments-plugin

This commit is contained in:
Sam Robson
2021-06-08 10:11:16 +01:00
committed by GitHub
1152 changed files with 51839 additions and 6920 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ export type GithubDeployment = {
commit: {
abbreviatedOid: string;
commitUrl: string;
};
} | null;
statuses: {
nodes: Node[];
};
@@ -66,11 +66,12 @@ export function createStatusColumn(): TableColumn<GithubDeployment> {
export function createCommitColumn(): TableColumn<GithubDeployment> {
return {
title: 'Commit',
render: (row: GithubDeployment): JSX.Element => (
<Link to={row.commit.commitUrl} target="_blank" rel="noopener">
{row.commit.abbreviatedOid}
</Link>
),
render: (row: GithubDeployment) =>
row.commit && (
<Link to={row.commit.commitUrl} target="_blank" rel="noopener">
{row.commit.abbreviatedOid}
</Link>
),
};
}