fix: milestone again
This commit is contained in:
parent
065f44b145
commit
8e6fc1e8a3
1 changed files with 7 additions and 16 deletions
13
.github/workflows/milestone.yml
vendored
13
.github/workflows/milestone.yml
vendored
|
@ -11,23 +11,14 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/github-script@v3
|
||||
- uses: actions/github-script@v6
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const milestone = 3
|
||||
if (context.eventName === 'issues') {
|
||||
github.issues.update({
|
||||
github.rest.issues.update({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
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