aboutsummaryrefslogtreecommitdiff
path: root/packages/api/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-08-11 12:59:23 +0200
committerHampusM <hampus@hampusmat.com>2021-08-11 12:59:23 +0200
commit108b469cbb09f911c9a52d4134a504d9b51ac30d (patch)
tree309763642bf53b4adecf20bfd09047715f572c39 /packages/api/src
parent3eb8757b8db81476782870d460e3d856907186a7 (diff)
Implemented gpg signed commit support
Diffstat (limited to 'packages/api/src')
-rw-r--r--packages/api/src/commit.d.ts12
-rw-r--r--packages/api/src/misc.d.ts4
2 files changed, 9 insertions, 7 deletions
diff --git a/packages/api/src/commit.d.ts b/packages/api/src/commit.d.ts
index 6eb598c..0a76f8a 100644
--- a/packages/api/src/commit.d.ts
+++ b/packages/api/src/commit.d.ts
@@ -18,9 +18,13 @@ export type Patch = {
too_large: boolean,
hunks: Hunk[]
}
+export interface CommitAuthor extends Author {
+ fingerprint: string | null
+}
export interface Commit {
message: string,
- author: Author,
+ author: CommitAuthor,
+ isSigned: boolean,
date: number,
insertions: number,
deletions: number,
@@ -30,10 +34,8 @@ export interface Commit {
export type LogCommit = {
id: string,
- author: {
- name: string,
- email: string
- },
+ author: CommitAuthor,
+ isSigned: boolean,
message: string,
date: number,
insertions: number,
diff --git a/packages/api/src/misc.d.ts b/packages/api/src/misc.d.ts
index e43fae5..70ab631 100644
--- a/packages/api/src/misc.d.ts
+++ b/packages/api/src/misc.d.ts
@@ -1,4 +1,4 @@
-export type Author = {
+export interface Author {
name: string,
- email: string
+ email: string,
} \ No newline at end of file