forked from mirrors/probot
fix: make `.issues.addLabels()` compatible with current GHE versions
This commit is contained in:
parent
c6cbc97bf0
commit
aa1c57072d
|
@ -0,0 +1,5 @@
|
|||
declare module '@octokit/plugin-enterprise-compatibility' {
|
||||
import Octokit from '@octokit/rest'
|
||||
declare function plugin(octokit: Octokit, options: Octokit.Options): void
|
||||
export = plugin
|
||||
}
|
|
@ -1,3 +1,4 @@
|
|||
import enterpriseCompatibility from '@octokit/plugin-enterprise-compatibility'
|
||||
import retryPlugin from '@octokit/plugin-retry'
|
||||
import throttlePlugin from '@octokit/plugin-throttling'
|
||||
import Octokit from '@octokit/rest'
|
||||
|
@ -9,6 +10,7 @@ import { addPagination } from './pagination'
|
|||
const ProbotOctokit = Octokit
|
||||
.plugin(throttlePlugin)
|
||||
.plugin(retryPlugin)
|
||||
.plugin(enterpriseCompatibility)
|
||||
|
||||
/**
|
||||
* the [@octokit/rest Node.js module](https://github.com/octokit/rest.js),
|
||||
|
|
Loading…
Reference in New Issue