diff --git a/packages/plugin-github/src/index.ts b/packages/plugin-github/src/index.ts index e4e98fc528..f501c22d38 100644 --- a/packages/plugin-github/src/index.ts +++ b/packages/plugin-github/src/index.ts @@ -83,6 +83,8 @@ export function apply(ctx: Context, config: Config = {}) { const { router, database } = ctx router.post(config.webhook, (ctx, next) => { + // workaround @octokit/webhooks for koa + ctx.req['body'] = ctx.request.body return webhooks.middleware(ctx.req, ctx.res, next) })