2021-09-17 15:54:38 +02:00
|
|
|
import {IsoDateString} from '../types/iso-date-string';
|
|
|
|
|
import {Assignee} from './assignee';
|
|
|
|
|
import {ILabel} from './label';
|
|
|
|
|
import {IMilestone} from './milestone';
|
2022-03-31 15:38:16 -04:00
|
|
|
import {components} from '@octokit/openapi-types';
|
2021-09-17 15:54:38 +02:00
|
|
|
export interface IIssue {
|
|
|
|
|
title: string;
|
|
|
|
|
number: number;
|
|
|
|
|
created_at: IsoDateString;
|
|
|
|
|
updated_at: IsoDateString;
|
|
|
|
|
labels: ILabel[];
|
2022-03-31 15:38:16 -04:00
|
|
|
pull_request?: Object | null;
|
2021-09-17 15:54:38 +02:00
|
|
|
state: string;
|
|
|
|
|
locked: boolean;
|
2022-03-31 15:38:16 -04:00
|
|
|
milestone?: IMilestone | null;
|
|
|
|
|
assignees?: Assignee[] | null;
|
2021-09-17 15:54:38 +02:00
|
|
|
}
|
2022-03-31 15:38:16 -04:00
|
|
|
|
|
|
|
|
export type OctokitIssue = components['schemas']['issue'];
|