Skip to content

Commit

Permalink
Merge pull request #1093 from psalm/dependabot/npm_and_yarn/probot-13…
Browse files Browse the repository at this point in the history
….4.2
  • Loading branch information
weirdan authored Jan 27, 2025
2 parents 41374f9 + 526652c commit fe51eaa
Show file tree
Hide file tree
Showing 4 changed files with 491 additions and 645 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@
"test:watch": "jest --watch --notify --notifyMode=change --coverage"
},
"dependencies": {
"probot": "^12.3.3"
"probot": "^13.4.2"
},
"devDependencies": {
"@types/express": "^5.0.0",
"@types/jest": "^29.5.14",
"@types/nock": "^11.1.0",
"@types/node": "^22.10.10",
"@types/node-fetch": "^2.6.12",
"@typescript-eslint/parser": "^8.21.0",
"eslint": "^9.19.0",
"eslint-plugin-typescript": "^0.14.0",
Expand Down
7 changes: 4 additions & 3 deletions src/Bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export class Bot {
}

async onIssueOpened(context: Context<'issues.opened'>) {
// @ts-ignore - Expression produces a union type that is too complex to represent
const responded = await this.respond(context)
if (false === responded) {
await this.greet(context)
Expand Down Expand Up @@ -63,7 +62,9 @@ export class Bot {
}
}

private async respond(context: Context<'issues'>|Context<'issue_comment'>|Context<'pull_request'>): Promise<boolean | null> {
private async respond(
context: Context<'issues' | 'issue_comment' | 'pull_request'>
): Promise<boolean | null> {
if (context.isBot) {
return null
}
Expand Down Expand Up @@ -91,7 +92,7 @@ export class Bot {
}


private async updateResponse(context: Context<'issues'>|Context<'issue_comment'>|Context<'pull_request'>) {
private async updateResponse(context: Context<'issues' | 'issue_comment' | 'pull_request'>) {
let respondingTo;
if ('comment' in context.payload) {
respondingTo = context.payload.comment
Expand Down
1 change: 0 additions & 1 deletion src/SnippetResolver/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type {Logger} from 'pino';
import fetch from 'node-fetch';
import {performance, PerformanceObserver} from 'perf_hooks';
import util from 'util';
import {LinkEntry} from '../CommentParser';
Expand Down
Loading

0 comments on commit fe51eaa

Please sign in to comment.