Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump probot from 12.3.3 to 13.4.2 #1093

Merged
merged 3 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading