mirror of https://github.com/buster-so/buster.git
test
This commit is contained in:
parent
8416615aa2
commit
9c304bf0a5
|
@ -25,6 +25,7 @@ function getOrSetApp() {
|
||||||
* Verifies signature and parses payload
|
* Verifies signature and parses payload
|
||||||
*/
|
*/
|
||||||
export function githubWebhookMiddleware(): MiddlewareHandler {
|
export function githubWebhookMiddleware(): MiddlewareHandler {
|
||||||
|
console.info('webhook middleware was called');
|
||||||
return async (c: Context, next) => {
|
return async (c: Context, next) => {
|
||||||
try {
|
try {
|
||||||
const githubApp = getOrSetApp();
|
const githubApp = getOrSetApp();
|
||||||
|
@ -42,7 +43,9 @@ export function githubWebhookMiddleware(): MiddlewareHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
await next();
|
await next();
|
||||||
|
console.info('await next');
|
||||||
|
|
||||||
|
console.info('await githubApp.webhooks.verifyAndReceive');
|
||||||
await githubApp.webhooks.verifyAndReceive({
|
await githubApp.webhooks.verifyAndReceive({
|
||||||
id,
|
id,
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Reference in New Issue