Skip to content

Commit 650f19e

Browse files
authored
add first renderers
1 parent 6a8cc82 commit 650f19e

19 files changed

+260
-18
lines changed

src/interfaces/IWrappedIssue.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { TColumnTypes } from './TColumnTypes';
2+
import { TRepoIssue } from './TRepoIssue';
3+
4+
export interface IWrappedIssue {
5+
column: TColumnTypes;
6+
issue: TRepoIssue;
7+
}

src/interfaces/TColumnCard.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { TColumnCardsResponse } from './TColumnCardsResponse';
2+
3+
export type TColumnCard = TColumnCardsResponse['data'][0];
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { ThenArg } from './ThenArg';
2+
import { TGitHub } from './TGitHub';
3+
4+
export type TColumnCardsResponse = ThenArg<ReturnType<TGitHub['projects']['listCards']>>;

src/interfaces/TColumnTypes.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export enum TColumnTypes {
2+
Backlog = 'Backlog',
3+
Committed = 'Committed',
4+
InProgress = 'In progress',
5+
Done = 'Done'
6+
}
7+
;

src/interfaces/TGitHub.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { GitHub } from '@actions/github/lib/utils';
2+
3+
4+
export type TGitHub = InstanceType<(typeof GitHub)>;

src/interfaces/TProject.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { TProjects } from './TProjects';
2+
3+
export type TProject = TProjects[0];

src/interfaces/TProjectColumn.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { TProjectColumns } from './TProjectColumns';
2+
3+
export type TProjectColumn = TProjectColumns[0];

src/interfaces/TProjectColumns.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { TProjectColumnsResponse } from './TProjectColumnsResponse';
2+
3+
export type TProjectColumns = TProjectColumnsResponse['data'];
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { ThenArg } from './ThenArg';
2+
import { TGitHub } from './TGitHub';
3+
4+
export type TProjectColumnsResponse = ThenArg<ReturnType<TGitHub['projects']['listColumns']>>;

src/interfaces/TProjects.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { TProjectResponse } from './TProjectsResponse';
2+
3+
export type TProjects = TProjectResponse['data'];

0 commit comments

Comments
 (0)