feat(repos): 获取 commit logs 时,允许返回错误信息给调用方。

This commit is contained in:
Ivan Li
2021-06-27 10:33:32 +08:00
parent 9d735c582c
commit 7e17de0f15
3 changed files with 22 additions and 12 deletions

View File

@ -1,10 +1,12 @@
import { ObjectType, Field } from '@nestjs/graphql';
import { Type } from 'class-transformer';
import { LogResult, DefaultLogFields } from 'simple-git';
import { PipelineTask } from '../../pipeline-tasks/pipeline-task.entity';
@ObjectType()
export class Commit {
hash: string;
@Type(() => Date)
date: Date;
message: string;
refs: string;