fix
This commit is contained in:
parent
59c7f9c4ce
commit
e0f2b0031a
5
.github/workflows/assign-milestones.js
vendored
5
.github/workflows/assign-milestones.js
vendored
|
@ -126,11 +126,12 @@ module.exports = async ({github, context, core}) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const milestoneId = milestone.id
|
const milestoneId = milestone.id
|
||||||
|
const milestoneNumber = milestone.number
|
||||||
|
|
||||||
request = {
|
request = {
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
milestone: milestoneId
|
milestone: milestoneNumber
|
||||||
}
|
}
|
||||||
request[isIssue ? 'issue_number' : 'pull_number'] = itemNumber
|
request[isIssue ? 'issue_number' : 'pull_number'] = itemNumber
|
||||||
await itemApi.update(request)
|
await itemApi.update(request)
|
||||||
|
@ -143,7 +144,7 @@ module.exports = async ({github, context, core}) => {
|
||||||
repo: context.repo.repo
|
repo: context.repo.repo
|
||||||
}
|
}
|
||||||
request[isIssue ? 'issue_number' : 'pull_number'] = itemNumber
|
request[isIssue ? 'issue_number' : 'pull_number'] = itemNumber
|
||||||
request.milestone = null
|
request.milestone = "none"
|
||||||
await itemApi.update(request)
|
await itemApi.update(request)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user