2023-03-22 21:41:06 -05:00
|
|
|
name: 'Issue/PR Milestones'
|
|
|
|
|
|
|
|
on:
|
2023-04-01 00:12:13 -05:00
|
|
|
pull_request_target:
|
2023-03-22 21:41:06 -05:00
|
|
|
types: [opened, reopened]
|
|
|
|
issues:
|
|
|
|
types: [opened, reopened]
|
|
|
|
|
2023-04-01 00:07:17 -05:00
|
|
|
permissions:
|
|
|
|
issues: write
|
|
|
|
checks: write
|
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
|
|
|
|
2023-03-22 21:41:06 -05:00
|
|
|
jobs:
|
|
|
|
set:
|
|
|
|
runs-on: ubuntu-latest
|
2023-04-01 00:05:59 -05:00
|
|
|
|
2023-03-22 21:41:06 -05:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2023-03-31 23:49:50 -05:00
|
|
|
- uses: actions/github-script@v6
|
2023-03-22 21:41:06 -05:00
|
|
|
with:
|
|
|
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
script: |
|
2023-03-27 18:41:00 -05:00
|
|
|
const milestone = 3
|
2023-03-31 23:49:50 -05:00
|
|
|
github.rest.issues.update({
|
|
|
|
issue_number: context.issue.number,
|
|
|
|
owner: context.repo.owner,
|
|
|
|
repo: context.repo.repo,
|
|
|
|
milestone
|
|
|
|
})
|