fix
This commit is contained in:
parent
46233a24ae
commit
a7ff547627
6
.github/workflows/assign-milestones.js
vendored
6
.github/workflows/assign-milestones.js
vendored
|
@ -83,7 +83,7 @@ module.exports = async ({github, context}) => {
|
||||||
console.log(issuResponse.data)
|
console.log(issuResponse.data)
|
||||||
itemId = issueResponse.data.id
|
itemId = issueResponse.data.id
|
||||||
}
|
}
|
||||||
if (itemType == 'pulls') {
|
else if (itemType == 'pulls') {
|
||||||
const pullResponse = await restapi.pulls.get({
|
const pullResponse = await restapi.pulls.get({
|
||||||
owner: context.owner,
|
owner: context.owner,
|
||||||
repo: context.repo,
|
repo: context.repo,
|
||||||
|
@ -92,6 +92,10 @@ module.exports = async ({github, context}) => {
|
||||||
console.log(pullResponse.data)
|
console.log(pullResponse.data)
|
||||||
itemId = pullResponse.data.id
|
itemId = pullResponse.data.id
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
console.log(`item: ${itemType} ??`)
|
||||||
|
}
|
||||||
|
console.log(`item: ${itemType}/${itemId}`)
|
||||||
|
|
||||||
const milestones = await restapi.issues.listMilestones({
|
const milestones = await restapi.issues.listMilestones({
|
||||||
repo: context.repo,
|
repo: context.repo,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user