Skip to content

Commit 8ed8a84

Browse files
chore: Bump @octokit/webhooks from 7.21.0 to 8.4.1 in /modules/webhook/lambdas/webhook (#573)
* chore: Bump @octokit/webhooks in /modules/webhook/lambdas/webhook Bumps [@octokit/webhooks](https://github.com/octokit/webhooks.js) from 7.21.0 to 8.4.1. - [Release notes](https://github.com/octokit/webhooks.js/releases) - [Commits](octokit/webhooks.js@v7.21.0...v8.4.1) Signed-off-by: dependabot[bot] <[email protected]> * fix: dependabot bump webhook Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niek Palm <[email protected]>
1 parent 0145f68 commit 8ed8a84

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

modules/webhook/lambdas/webhook/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"format-check": "prettier --check \"**/*.ts\""
1616
},
1717
"devDependencies": {
18+
"@octokit/webhooks-definitions": "^3.61.1",
1819
"@types/express": "^4.17.11",
1920
"@types/jest": "^26.0.20",
2021
"@types/node": "^14.14.31",
@@ -32,6 +33,6 @@
3233
},
3334
"dependencies": {
3435
"@octokit/rest": "^18.2.0",
35-
"@octokit/webhooks": "^7.21.0"
36+
"@octokit/webhooks": "^8.4.1"
3637
}
37-
}
38+
}

modules/webhook/lambdas/webhook/src/webhook/handler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { IncomingHttpHeaders } from 'http';
22
import { Webhooks } from '@octokit/webhooks';
33
import { sendActionRequest } from '../sqs';
4-
import { EventPayloads } from '@octokit/webhooks';
4+
import { CheckRunEvent } from '@octokit/webhooks-definitions/schema';
55
import { decrypt } from '../kms';
66

77
export const handle = async (headers: IncomingHttpHeaders, payload: any): Promise<number> => {
@@ -39,7 +39,7 @@ export const handle = async (headers: IncomingHttpHeaders, payload: any): Promis
3939
console.debug(`Received Github event: "${githubEvent}"`);
4040

4141
if (githubEvent === 'check_run') {
42-
const body = JSON.parse(payload) as EventPayloads.WebhookPayloadCheckRun;
42+
const body = JSON.parse(payload) as CheckRunEvent;
4343
let installationId = body.installation?.id;
4444
if (installationId == null) {
4545
installationId = 0;
@@ -50,7 +50,7 @@ export const handle = async (headers: IncomingHttpHeaders, payload: any): Promis
5050
repositoryName: body.repository.name,
5151
repositoryOwner: body.repository.owner.login,
5252
eventType: githubEvent,
53-
installationId: installationId
53+
installationId: installationId,
5454
});
5555
}
5656
} else {

modules/webhook/lambdas/webhook/yarn.lock

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -638,12 +638,23 @@
638638
dependencies:
639639
"@octokit/openapi-types" "^5.1.0"
640640

641-
"@octokit/webhooks@^7.21.0":
642-
version "7.21.0"
643-
resolved "https://registry.yarnpkg.com/@octokit/webhooks/-/webhooks-7.21.0.tgz#2aee3404aa311740a5f4ea37b070268752e21b02"
644-
integrity sha512-Mj7Pa6JZgSjfzQfYF3Bf5KpyhzEBv4kHbj2EjCB/vMQiZCiiW30j5rS6t/d0ZN0FBrlSOuJIT+YU8IJt30VyWA==
641+
"@octokit/[email protected]":
642+
version "3.61.0"
643+
resolved "https://registry.yarnpkg.com/@octokit/webhooks-definitions/-/webhooks-definitions-3.61.0.tgz#78ac9821f9122d3d9e8b099ba6033e47f755e885"
644+
integrity sha512-Iu2rMpCU0y25T4rIMoAKyQRWf/YJZnJKbIzzrKQMQJRIiORe4AGev1GLgf5zUcnz9twQ23DYEFLpDLVHViwTDQ==
645+
646+
"@octokit/webhooks-definitions@^3.61.1":
647+
version "3.61.1"
648+
resolved "https://registry.yarnpkg.com/@octokit/webhooks-definitions/-/webhooks-definitions-3.61.1.tgz#2dd13aa7562a191f5474a983d4d5622e29c72a2e"
649+
integrity sha512-Zse9eUHz4dzQic1CSxhN5tpUh3mjfc9Nl5GMOo6c6ZDTgpreOscBWD4cMQ9Rc689rt+Zb1bbplPrR8rsF6WbBw==
650+
651+
"@octokit/webhooks@^8.4.1":
652+
version "8.4.1"
653+
resolved "https://registry.yarnpkg.com/@octokit/webhooks/-/webhooks-8.4.1.tgz#4490ded72e76988c02f99cdf2300ab5499f09a21"
654+
integrity sha512-XV7VWuV13ltfuYREWX+3yrHFjBGalHrkzba5ht2q92s3RzFQH28NU+ZJADwbozFf5rY9fLtrVuhEsHPnaPxGrg==
645655
dependencies:
646656
"@octokit/request-error" "^2.0.2"
657+
"@octokit/webhooks-definitions" "3.61.0"
647658
aggregate-error "^3.1.0"
648659
debug "^4.0.0"
649660

0 commit comments

Comments
 (0)