1
0
This commit is contained in:
Stephan 2022-01-10 19:53:04 +01:00
parent 59c7f9c4ce
commit e0f2b0031a

View File

@ -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 {