zipline/.github/workflows/milestone.yml

32 lines
663 B
YAML
Raw Permalink Normal View History

2023-03-22 21:41:06 -05:00
name: 'Issue/PR Milestones'
on:
pull_request_target:
2023-03-22 21:41:06 -05:00
types: [opened, reopened]
issues:
types: [opened, reopened]
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
})