This commit is contained in:
Stephan 2022-01-10 18:49:04 +01:00
parent 6a00c973fb
commit 702e7112e2

View File

@ -76,8 +76,8 @@ module.exports = async ({github, context, core}) => {
var itemId var itemId
if (itemType == 'issues') { if (itemType == 'issues') {
const issueResponse = await restapi.issues.get({ const issueResponse = await restapi.issues.get({
owner: context.owner, owner: context.repo.owner,
repo: context.repo, repo: context.repo.repo,
issue_number: itemNumber issue_number: itemNumber
}) })
console.log(issuResponse.data) console.log(issuResponse.data)
@ -85,8 +85,8 @@ module.exports = async ({github, context, core}) => {
} }
else if (itemType == 'pulls') { else if (itemType == 'pulls') {
const pullResponse = await restapi.pulls.get({ const pullResponse = await restapi.pulls.get({
owner: context.owner, owner: context.repo.owner,
repo: context.repo, repo: context.repo.repo,
pull_number: itemNumber pull_number: itemNumber
}) })
console.log(pullResponse.data) console.log(pullResponse.data)
@ -99,8 +99,8 @@ module.exports = async ({github, context, core}) => {
console.log(`item: ${itemType}/${itemId}`) console.log(`item: ${itemType}/${itemId}`)
const milestonesResponse = await restapi.issues.listMilestones({ const milestonesResponse = await restapi.issues.listMilestones({
repo: context.repo, owner: context.repo.owner,
owner: context.owner repo: context.repo.repo,
}) })
const milestones = milestonesResponse.data const milestones = milestonesResponse.data
console.log(milestones) console.log(milestones)