Add date to commits
This commit is contained in:
@@ -18,7 +18,11 @@ export interface Commit {
|
|||||||
node_id: string;
|
node_id: string;
|
||||||
commit: {
|
commit: {
|
||||||
author: string;
|
author: string;
|
||||||
committer: string;
|
committer: {
|
||||||
|
date: string;
|
||||||
|
email: string;
|
||||||
|
mame: string;
|
||||||
|
};
|
||||||
message: string;
|
message: string;
|
||||||
tree: {
|
tree: {
|
||||||
sha: string;
|
sha: string;
|
||||||
@@ -92,6 +96,11 @@ export const VersionInfo = ({
|
|||||||
: 'dark:bg-secondaryDark'
|
: 'dark:bg-secondaryDark'
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
|
<div className="my-auto text-xs dark:text-gray-400">
|
||||||
|
{new Date(
|
||||||
|
commit.commit.committer.date,
|
||||||
|
).toLocaleDateString()}
|
||||||
|
</div>
|
||||||
<div className="my-auto font-mono text-sm">
|
<div className="my-auto font-mono text-sm">
|
||||||
{commit.sha.substring(0, 7)}
|
{commit.sha.substring(0, 7)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user