]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
.github: add workflow for adding milestone
authorKefu Chai <kchai@redhat.com>
Sat, 6 Mar 2021 13:18:13 +0000 (21:18 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 8 Mar 2021 19:50:32 +0000 (03:50 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 1657a44750442ff2582d601fb028aa89e3a95999)

.github/milestone.yml [new file with mode: 0644]
.github/workflows/milestone.yml [new file with mode: 0644]

diff --git a/.github/milestone.yml b/.github/milestone.yml
new file mode 100644 (file)
index 0000000..e5cd0b2
--- /dev/null
@@ -0,0 +1,6 @@
+base-branch:
+  - "luminous"
+  - "nautilus"
+  - "octopus"
+  - "pacific"
+  - "quincy"
diff --git a/.github/workflows/milestone.yml b/.github/workflows/milestone.yml
new file mode 100644 (file)
index 0000000..db8aa86
--- /dev/null
@@ -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 }}"