mirror of
https://github.com/zhigang1992/now-deployment.git
synced 2026-04-02 09:20:58 +08:00
26 lines
527 B
TypeScript
26 lines
527 B
TypeScript
export interface Commit {
|
|
shortHash: string;
|
|
hash: string;
|
|
subject: string;
|
|
sanitizedSubject: string;
|
|
body: string;
|
|
authoredOn: string;
|
|
committedOn: string;
|
|
author: {
|
|
name: string;
|
|
email: string;
|
|
},
|
|
committer: {
|
|
name: string;
|
|
email: string;
|
|
},
|
|
notes?: string;
|
|
branch: string;
|
|
tags: string[];
|
|
}
|
|
|
|
type GetLastCommitCallback = (err: Error, commit: Commit) => void;
|
|
|
|
export const getLastCommit: (callback: GetLastCommitCallback) => void;
|
|
|