Skip to content

Commit

Permalink
fix: adapt for deprecated parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Apr 17, 2019
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
Expand Up @@ -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: {
Expand All @@ -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({
Expand Down

0 comments on commit 89b3bfb

Please sign in to comment.