Skip to content

Commit

Permalink
fix(github): fix 202 still processing
Browse files Browse the repository at this point in the history
workaround @octokit/webhooks for koa
  • Loading branch information
shigma committed Aug 31, 2020
1 parent 44de27f commit 6019877
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/plugin-github/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down

0 comments on commit 6019877

Please sign in to comment.