Skip to content

Commit

Permalink
chore: deps updates
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jul 11, 2023
1 parent 4afa7a9 commit 06c8a33
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 139 deletions.
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,29 @@
},
"dependencies": {
"config-yml": "^0.10.2",
"fs-extra": "^7.0.0",
"fs-extra": "^11.1.1",
"global-agent": "^3.0.0",
"node-fetch": "^2.6.7",
"probot": "^12.2.8",
"prom-client": "^13.1.0",
"queue": "^4.5.0",
"simple-git": "3.16.0",
"what-the-diff": "^0.4.0"
"probot": "^12.3.1",
"prom-client": "^14.2.0",
"queue": "^6.0.0",
"simple-git": "3.19.1",
"what-the-diff": "^0.6.0"
},
"devDependencies": {
"@types/bunyan": "^1.8.5",
"@types/fs-extra": "^5.0.1",
"@types/fs-extra": "^11.0.1",
"@types/jest": "^29.0.0",
"@types/node": "^18.11.8",
"@types/node-fetch": "^2.5.4",
"@types/pino-std-serializers": "^4.0.0",
"@types/sinon": "^5.0.5",
"@types/sinon": "^10.0.15",
"husky": "^6.0.0",
"jest": "^29.0.0",
"lint-staged": "^10.4.2",
"nock": "^13.2.9",
"prettier": "^2.0.5",
"sinon": "^7.5.0",
"smee-client": "^1.0.1",
"prettier": "^3.0.0",
"sinon": "^15.2.0",
"smee-client": "^1.2.3",
"ts-jest": "^29.0.0",
"tslint": "^5.20.1",
"tslint-config-airbnb": "^5.11.2",
Expand Down
13 changes: 5 additions & 8 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fetch from 'node-fetch';
import * as fs from 'fs-extra';
import { IQueue } from 'queue';
import Queue from 'queue';
import simpleGit from 'simple-git';

import queue from './Queue';
Expand Down Expand Up @@ -29,7 +29,6 @@ import {
} from './types';
import { Context, Probot } from 'probot';

const makeQueue: IQueue = require('queue');
const { parse: parseDiff } = require('what-the-diff');

const backportViaAllHisto = new client.Histogram({
Expand Down Expand Up @@ -113,8 +112,7 @@ const tryBackportAllCommits = async (opts: TryBackportOptions) => {
await context.octokit.issues.createComment(
context.repo({
issue_number: opts.pr.number,
body:
'This PR has exceeded the automatic backport commit limit \
body: 'This PR has exceeded the automatic backport commit limit \
and must be performed manually.',
}),
);
Expand All @@ -129,7 +127,7 @@ and must be performed manually.',
);

const patches: string[] = new Array(commits.length).fill('');
const q = makeQueue({ concurrency: 5 });
const q = new Queue({ concurrency: 5 });
q.stop();

for (const [i, commit] of commits.entries()) {
Expand Down Expand Up @@ -354,9 +352,8 @@ const checkUserHasWriteAccess = async (
);

const params = context.repo({ username: user });
const {
data: userInfo,
} = await context.octokit.repos.getCollaboratorPermissionLevel(params);
const { data: userInfo } =
await context.octokit.repos.getCollaboratorPermissionLevel(params);

// Possible values for the permission key: 'admin', 'write', 'read', 'none'.
// In order for the user's review to count, they must be at least 'write'.
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2018",
"target": "ES2020",
"outDir": "lib",
"lib": [
"ESNext"
"ES2022",
"ESNext",
"dom",
],
"sourceMap": true,
"rootDir": "src",
Expand Down
Loading

0 comments on commit 06c8a33

Please sign in to comment.