Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
fix: use issue_number for tag issues (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored May 20, 2019
1 parent dffdc0c commit 2fcb920
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
"@types/node": "^10.12.1",
"@types/update-notifier": "^2.5.0",
"gts": "^1.0.0",
"linkinator": "^1.4.2",
"mocha": "^6.0.0",
"nyc": "^14.0.0",
"typescript": "^3.1.4",
"linkinator": "^1.1.2"
"typescript": "^3.1.4"
},
"engines": {
"node": ">=8.10.0"
Expand Down
5 changes: 2 additions & 3 deletions src/issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,10 @@ function tagIssue(
return octo.issues
.addLabels({
labels: [label],
number: i.number,
issue_number: i.number,
owner: i.owner,
repo: i.repo,
// tslint:disable-next-line no-any
} as any)
})
.catch(e => {
console.error(`Error tagging ${i.repo}#${i.number} with '${label}'`);
console.error(e);
Expand Down

0 comments on commit 2fcb920

Please sign in to comment.