fix: make `.issues.addLabels()` compatible with current GHE versions

This commit is contained in:
Gregor 2019-01-09 13:59:24 -08:00
parent c6cbc97bf0
commit aa1c57072d
2 changed files with 7 additions and 0 deletions

View File

@ -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
}

View File

@ -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),