diff options
author | HampusM <hampus@hampusmat.com> | 2021-08-11 12:59:23 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-08-11 12:59:23 +0200 |
commit | 108b469cbb09f911c9a52d4134a504d9b51ac30d (patch) | |
tree | 309763642bf53b4adecf20bfd09047715f572c39 /packages/server/src/routes/api/v1/repo/log.ts | |
parent | 3eb8757b8db81476782870d460e3d856907186a7 (diff) |
Implemented gpg signed commit support
Diffstat (limited to 'packages/server/src/routes/api/v1/repo/log.ts')
-rw-r--r-- | packages/server/src/routes/api/v1/repo/log.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/server/src/routes/api/v1/repo/log.ts b/packages/server/src/routes/api/v1/repo/log.ts index a7d8dfa..cf53d6b 100644 --- a/packages/server/src/routes/api/v1/repo/log.ts +++ b/packages/server/src/routes/api/v1/repo/log.ts @@ -46,9 +46,11 @@ export default function(fastify: FastifyInstance, opts: FastifyPluginOptions, do const data: APICommit = { message: commit.message, author: { - name: commit.author.name, - email: commit.author.email + name: commit.author().name, + email: commit.author().email, + fingerprint: await commit.author().fingerprint().catch(() => null) }, + isSigned: await commit.isSigned(), date: commit.date, insertions: stats.insertions, deletions: stats.deletions, |