Skip to content

Commit

Permalink
fix: adapt for deprecated parameters
Browse files Browse the repository at this point in the history
gr2m committed Apr 17, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ae003b1 commit 89b3bfb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -4,13 +4,18 @@ function octokitEnterpriseCompatibility (octokit) {
// see https://github.com/octokit/rest.js/blob/15.x/lib/routes.json#L3046-L3068
const addOrReplaceLabelsOptions = {
params: {
issue_number: {
required: true,
type: 'integer'
},
labels: {
required: true,
type: 'string[]',
mapTo: 'data'
},
number: {
required: true,
alias: 'issue_number',
deprecated: true,
type: 'integer'
},
owner: {
@@ -22,7 +27,7 @@ function octokitEnterpriseCompatibility (octokit) {
type: 'string'
}
},
url: '/repos/:owner/:repo/issues/:number/labels'
url: '/repos/:owner/:repo/issues/:issue_number/labels'
}

octokit.registerEndpoints({

0 comments on commit 89b3bfb

Please sign in to comment.