fix: milestone
This commit is contained in:
parent
e5a07f568d
commit
065f44b145
1 changed files with 15 additions and 6 deletions
9
.github/workflows/milestone.yml
vendored
9
.github/workflows/milestone.yml
vendored
|
@ -16,9 +16,18 @@ jobs:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
const milestone = 3
|
const milestone = 3
|
||||||
|
if (context.eventName === 'issues') {
|
||||||
github.issues.update({
|
github.issues.update({
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
milestone
|
milestone
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
github.pulls.update({
|
||||||
|
pull_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
milestone
|
||||||
|
})
|
||||||
|
}
|
Loading…
Reference in a new issue