From ad4b9826569b1f8bbcfa637de4ee5f790da0aacc Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 20 May 2019 13:16:13 -0700 Subject: [PATCH] fix: use issue_number for tag issues --- package.json | 4 ++-- src/issue.ts | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 0168b396..80ff3221 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/issue.ts b/src/issue.ts index c64bdd7f..61ac8f0c 100644 --- a/src/issue.ts +++ b/src/issue.ts @@ -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);