1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-16 09:41:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

fix format

This commit is contained in:
sunnylqm
2025-03-15 19:08:34 +08:00
parent a559140b72
commit b0a8fc928a

View File

@@ -6,7 +6,7 @@ export interface CommitInfo {
hash: string; hash: string;
message: string; message: string;
author: string; author: string;
date: string; timestamp: string;
origin: string; origin: string;
} }
@@ -40,7 +40,7 @@ export async function getCommitInfo(): Promise<CommitInfo | undefined> {
hash: oid, hash: oid,
message: commit.message, message: commit.message,
author: commit.author.name || commit.committer.name, author: commit.author.name || commit.committer.name,
date: String(commit.committer.timestamp), timestamp: String(commit.committer.timestamp),
origin: origin.url, origin: origin.url,
}; };
} catch (error) { } catch (error) {