Use getIssueData

This commit is contained in:
Andrea Maria Piana 2020-12-29 09:56:40 +01:00
parent 2671b8f070
commit 0884539c91
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 1 additions and 1 deletions

View File

@ -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;