From 0884539c91795651608ab8f0508e61c03f3f3337 Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Tue, 29 Dec 2020 09:56:40 +0100 Subject: [PATCH] Use getIssueData --- lib/handlers/issues.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/handlers/issues.js b/lib/handlers/issues.js index 08af359..fdb0063 100644 --- a/lib/handlers/issues.js +++ b/lib/handlers/issues.js @@ -9,7 +9,7 @@ exports.milestoned = async function handleMilestonedIssue(tools) { { payload } = tools.context; const issueNo = payload.issue.number; - let zenHubIssue = await zh.issues.getIssue(payload.repository.id, issueNo); + let zenHubIssue = await zh.issues.getIssueData(payload.repository.id, issueNo); if (!zenHubIssue) { tools.log.info("issue not found"); return;