Skip to content

Commit 31fdd61

Browse files
authoredSep 18, 2020
feat: export WebhookPayloadWithRepository (#1348)
1 parent 86b0408 commit 31fdd61

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎src/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const DEFAULT_BASE = ".github";
2727

2828
export type MergeOptions = merge.Options;
2929

30-
interface WebhookPayloadWithRepository {
30+
export interface WebhookPayloadWithRepository {
3131
[key: string]: any;
3232
repository?: EventPayloads.PayloadRepository;
3333
issue?: {

‎src/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type { Logger } from "pino";
1313
import { Server } from "http";
1414
import { Application } from "./application";
1515
import { setupAppFactory } from "./apps/setup";
16-
import { Context } from "./context";
16+
import { Context, WebhookPayloadWithRepository } from "./context";
1717
import { ProbotOctokit } from "./octokit/probot-octokit";
1818
import { getLog } from "./helpers/get-log";
1919
import { findPrivateKey } from "./helpers/get-private-key";
@@ -367,3 +367,6 @@ export const createProbot = (options: Options) => {
367367
export type ApplicationFunction = (app: Application) => void;
368368

369369
export { Logger, Context, Application, ProbotOctokit };
370+
371+
/** NOTE: exported types might change at any point in time */
372+
export { WebhookPayloadWithRepository };

0 commit comments

Comments
 (0)
Please sign in to comment.