Skip to content

Commit

Permalink
Merge pull request #141 from tjenkinson/dependabot/npm_and_yarn/octok…
Browse files Browse the repository at this point in the history
…it/webhooks-8.5.3

Bump @octokit/webhooks from 7.24.3 to 8.5.3
  • Loading branch information
tjenkinson authored Mar 13, 2021
2 parents a5d031f + 2a78f32 commit a63d5af
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
13 changes: 10 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@actions/core": "1.2.6",
"@actions/github": "4.0.0",
"@octokit/plugin-throttling": "^3.3.3",
"@octokit/webhooks": "7.24.3",
"@octokit/webhooks": "8.5.3",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.0.0",
"@types/jest": "^26.0.15",
Expand Down
9 changes: 4 additions & 5 deletions src/run.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as core from '@actions/core';
import * as github from '@actions/github';
import * as Webhooks from '@octokit/webhooks';
import { EmitterWebhookEvent } from '@octokit/webhooks';
import { GitHub, getOctokitOptions } from '@actions/github/lib/utils';
import { throttling } from '@octokit/plugin-throttling';
import { detailedDiff } from 'deep-object-diff';
Expand All @@ -26,10 +26,9 @@ export async function run(): Promise<Result> {
core.error(`Unsupported event name: ${github.context.eventName}`);
return Result.UnknownEvent;
}
const payload:
| Webhooks.EventPayloads.WebhookPayloadPullRequest
| Webhooks.EventPayloads.WebhookPayloadPullRequestReview = github.context
.payload as any;
const payload: EmitterWebhookEvent<
'pull_request' | 'pull_request_review'
>['payload'] = github.context.payload as any;

const token = core.getInput('repo-token', { required: true });

Expand Down

0 comments on commit a63d5af

Please sign in to comment.