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;