feat(pipelines): add commits query api.

This commit is contained in:
Ivan Li
2021-05-09 16:54:59 +08:00
parent 5a8b699e2f
commit 4041a6fd2a
6 changed files with 55 additions and 7 deletions

View File

@ -2,6 +2,17 @@ import { ObjectType, Field } from '@nestjs/graphql';
import { LogResult, DefaultLogFields } from 'simple-git';
import { PipelineTask } from '../../pipeline-tasks/pipeline-task.entity';
@ObjectType()
export class Commit {
hash: string;
date: Date;
message: string;
refs: string;
body: string;
author_name: string;
author_email: string;
tasks: PipelineTask[];
}
@ObjectType()
export class LogFields {
hash: string;