feat(actions): auto-assign milestone

This commit is contained in:
diced 2023-03-22 19:41:06 -07:00
parent 37e7ad840c
commit 3a27f31a03
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

24
.github/workflows/milestone.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: 'Issue/PR Milestones'
on:
pull_request:
types: [opened, reopened]
issues:
types: [opened, reopened]
jobs:
set:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const milestone = 2
github.issues.update({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
milestone
})