@dxdeveloperexperience/hygie
Version:
Hygie is an easy-to-use Open-Source REST API allowing you to interact with GIT events. This NestJS API expose a set of customizable rules to automate your project's life cycle.
48 lines (42 loc) • 975 B
text/typescript
import { IssuePRStateEnum } from './gitIssueInfos';
/**
* Provide all informations needed to interact with a Pull Request / Merge Request via a git API
*/
export class GitCommentPRInfos {
comment: string;
number: string;
}
/**
* Provide all informations needed to create a Pull Request / Merge Request via a git API
*/
export class GitPRInfos {
title: string;
description: string;
source: string;
target: string;
state?: IssuePRStateEnum;
number?: number;
draft?: boolean;
}
/**
* All supported methods to "merge" a Pull Request / Merge Request
*/
export enum PRMethodsEnum {
Merge = 'Merge',
Squash = 'Squash',
Rebase = 'Rebase',
}
/**
* Provide all informations needed to merge a Pull Request / Merge Request via a git API
*/
export class GitMergePRInfos {
number: number;
commitTitle: string;
commitMessage: string;
method: PRMethodsEnum;
sha: string;
}
export class PRSearchResult {
number: number;
updatedAt: string;
}