mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
feat: add type for merge request approval
This commit is contained in:
20
src/types.ts
20
src/types.ts
@@ -287,6 +287,26 @@ export interface MergeRequest extends ThingWithTimeStats {
|
|||||||
work_in_progress: boolean;
|
work_in_progress: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A merge request approval
|
||||||
|
*/
|
||||||
|
export interface MergeRequestApproval {
|
||||||
|
approvals_left: number;
|
||||||
|
approvals_required: number;
|
||||||
|
approved_by: Array<{ user: User }>;
|
||||||
|
approver_groups: Group[];
|
||||||
|
approvers: User[];
|
||||||
|
created_at: string;
|
||||||
|
description: string;
|
||||||
|
id: number;
|
||||||
|
iid: number;
|
||||||
|
merge_status: MergeRequestMergeStatus;
|
||||||
|
project_id: number;
|
||||||
|
state: MergeRequestState;
|
||||||
|
title: string;
|
||||||
|
updated_at: string;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A GitLab thing with time stats
|
* A GitLab thing with time stats
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user