.github: add workflow for adding milestone

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-03-06 21:18:13 +08:00
parent c4408499e4
commit 1657a44750
2 changed files with 20 additions and 0 deletions

6
.github/milestone.yml vendored Normal file
View File

@ -0,0 +1,6 @@
base-branch:
- "luminous"
- "nautilus"
- "octopus"
- "pacific"
- "quincy"

14
.github/workflows/milestone.yml vendored Normal file
View File

@ -0,0 +1,14 @@
---
name: "Pull Request Add Milestone"
on:
pull_request:
types:
- opened
jobs:
milestone:
runs-on: ubuntu-latest
steps:
- uses: iyu/actions-milestone@v1
with:
configuration-path: .github/milestone.yml
repo-token: "${{ secrets.GITHUB_TOKEN }}"