Skip to content

Commit

Permalink
Merged by Peril
Browse files Browse the repository at this point in the history
Fix "@octokit/rest" deprecation warning when using ".issues.addLabels()"
  • Loading branch information
peril-staging[bot] committed Mar 5, 2020
2 parents 5ad5fd9 + 18e4a41 commit 04c3345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ x
- Update `parse-diff` library - [@417-72KI]
- Fix repository slug in Jenkins provider - [sandratatarevicova]
- Fix Typos across danger-js Repo - [@yohix]
- Fix `@octokit/rest` deprecation warning when using `.issues.addLabels()` - [@sogame]

<!-- Your comment above this -->

Expand Down
2 changes: 1 addition & 1 deletion source/platforms/github/GitHubUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export const createOrAddLabel = (pr: GitHubPRDSL | undefined, api: GitHub) => as
await api.issues.addLabels({
owner: config.owner,
repo: config.repo,
number: config.id,
issue_number: config.id,
labels: [labelConfig.name],
})
}
Expand Down

0 comments on commit 04c3345

Please sign in to comment.