From 702e7112e24df4a0a0c50fb2898aaf64f17fb53f Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 10 Jan 2022 18:49:04 +0100 Subject: [PATCH] fix --- .github/workflows/assign-milestones.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/assign-milestones.js b/.github/workflows/assign-milestones.js index 4086597..1f6c6ae 100644 --- a/.github/workflows/assign-milestones.js +++ b/.github/workflows/assign-milestones.js @@ -76,8 +76,8 @@ module.exports = async ({github, context, core}) => { var itemId if (itemType == 'issues') { const issueResponse = await restapi.issues.get({ - owner: context.owner, - repo: context.repo, + owner: context.repo.owner, + repo: context.repo.repo, issue_number: itemNumber }) console.log(issuResponse.data) @@ -85,8 +85,8 @@ module.exports = async ({github, context, core}) => { } else if (itemType == 'pulls') { const pullResponse = await restapi.pulls.get({ - owner: context.owner, - repo: context.repo, + owner: context.repo.owner, + repo: context.repo.repo, pull_number: itemNumber }) console.log(pullResponse.data) @@ -99,8 +99,8 @@ module.exports = async ({github, context, core}) => { console.log(`item: ${itemType}/${itemId}`) const milestonesResponse = await restapi.issues.listMilestones({ - repo: context.repo, - owner: context.owner + owner: context.repo.owner, + repo: context.repo.repo, }) const milestones = milestonesResponse.data console.log(milestones)