feat(version): add build metadata fields
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
d518b13f36
commit
7490f34267
2 changed files with 5 additions and 1 deletions
|
|
@ -5,5 +5,7 @@ export interface VersionInfo {
|
||||||
commitHash: string | null;
|
commitHash: string | null;
|
||||||
commitDate: string | null;
|
commitDate: string | null;
|
||||||
commitSubject: string | null;
|
commitSubject: string | null;
|
||||||
|
lastUpdated: string | null;
|
||||||
|
commitMessage: string | null;
|
||||||
buildTime: string | null;
|
buildTime: string | null;
|
||||||
}
|
}
|
||||||
|
|
@ -72,6 +72,8 @@ function main(): void {
|
||||||
commitHash,
|
commitHash,
|
||||||
commitDate,
|
commitDate,
|
||||||
commitSubject,
|
commitSubject,
|
||||||
|
lastUpdated: commitDate ?? buildTime,
|
||||||
|
commitMessage: commitSubject,
|
||||||
buildTime,
|
buildTime,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue