- upgrade all node dependencies

```
    "@octokit/rest": "^20.0.1",
    "node-fetch": "^3.3.2",
```
This commit is contained in:
Mike Penz
2023-07-28 11:47:20 +00:00
committed by GitHub
parent f0cbee5a3a
commit 240554bbf4
12 changed files with 8917 additions and 2047 deletions
+5 -1
View File
@@ -6,6 +6,7 @@ import {failOrError} from './utils'
import {HttpsProxyAgent} from 'https-proxy-agent'
import {PullRequestInfo, PullRequests} from './pullRequests'
import {Commits, DiffInfo} from './commits'
import fetch from 'node-fetch'
export interface Options {
owner: string // the owner of the repository
@@ -61,7 +62,10 @@ export class PullRequestCollector {
// load octokit instance
const octokit = new Octokit({
auth: `token ${this.token || process.env.GITHUB_TOKEN}`,
baseUrl: `${this.baseUrl || 'https://api.github.com'}`
baseUrl: `${this.baseUrl || 'https://api.github.com'}`,
request: {
fetch
}
})
if (proxy) {