Use getIssueData
This commit is contained in:
parent
2671b8f070
commit
0884539c91
|
@ -9,7 +9,7 @@ exports.milestoned = async function handleMilestonedIssue(tools) {
|
||||||
{ payload } = tools.context;
|
{ payload } = tools.context;
|
||||||
|
|
||||||
const issueNo = payload.issue.number;
|
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) {
|
if (!zenHubIssue) {
|
||||||
tools.log.info("issue not found");
|
tools.log.info("issue not found");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue