Skip to content

Commit f7c3cda

Browse files
committed
refactor(ts): add Commit interface and Action commitData
1 parent 8a78bae commit f7c3cda

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/proxy/actions/Action.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
import { getProxyUrl } from "../../config";
22
import { Step } from "./Step";
33

4+
/**
5+
* Represents a commit.
6+
*/
7+
export interface Commit {
8+
message: string;
9+
committer: string;
10+
tree: string;
11+
parent: string;
12+
author: string;
13+
authorEmail: string;
14+
commitTS?: string; // TODO: Normalize this to commitTimestamp
15+
commitTimestamp?: string;
16+
}
17+
418
/**
519
* Class representing a Push.
620
*/
@@ -14,6 +28,7 @@ class Action {
1428
authorised: boolean = false;
1529
canceled: boolean = false;
1630
rejected: boolean = false;
31+
commitData?: Commit[] = [];
1732
commitFrom?: string;
1833
commitTo?: string;
1934
branch?: string;

0 commit comments

Comments
 (0)