fix: milestone

This commit is contained in:
diced 2023-03-31 21:41:19 -07:00
parent e5a07f568d
commit 065f44b145
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -16,9 +16,18 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}} github-token: ${{secrets.GITHUB_TOKEN}}
script: | script: |
const milestone = 3 const milestone = 3
github.issues.update({ if (context.eventName === 'issues') {
issue_number: context.issue.number, github.issues.update({
owner: context.repo.owner, issue_number: context.issue.number,
repo: context.repo.repo, owner: context.repo.owner,
milestone repo: context.repo.repo,
}) milestone
})
} else {
github.pulls.update({
pull_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
milestone
})
}