Skip to content

Commit 771f339

Browse files
committed
Moved new types to their own file
1 parent 09f0ce4 commit 771f339

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

src/functions/app.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
import { Probot } from "probot";
22
import { EmitterWebhookEvent } from "@octokit/webhooks";
3-
4-
interface InstallationLite {
5-
id: number;
6-
node_id: string;
7-
}
8-
interface GitHubAppWebHookPayload {
9-
installation: InstallationLite;
10-
repository: {
11-
name: string;
12-
owner: {
13-
login: string;
14-
}
15-
}
16-
}
3+
import { GitHubAppWebHookPayload } from "./types";
174

185
// import * as fs from 'fs';
196
// import * as yaml from 'yaml';

src/functions/types.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
interface InstallationLite {
2+
id: number;
3+
node_id: string;
4+
}
5+
6+
export interface GitHubAppWebHookPayload {
7+
installation: InstallationLite;
8+
repository: {
9+
name: string;
10+
owner: {
11+
login: string;
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)