- upgrade all node dependencies
```
"@octokit/rest": "^20.0.1",
"node-fetch": "^3.3.2",
```
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user