]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
.github: Label doc/releases PRs so tibdex/backport@v2 can backport
authorDavid Galloway <dgallowa@redhat.com>
Thu, 23 Jun 2022 19:31:48 +0000 (15:31 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 23 Jun 2022 19:31:48 +0000 (15:31 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
.github/labeler.yml
.github/workflows/label-releases-doc-prs.yml [new file with mode: 0644]

index bf8c4d316833c102e1981fa5787790b635729c40..342eb723b3807aa45554f15ad0a9c112cf4a8eb4 100644 (file)
@@ -1,6 +1,15 @@
 api-change:
   - src/pybind/mgr/dashboard/openapi.yaml
 
+backport quincy:
+  - doc/releases/**
+
+backport pacific:
+  - doc/releases/**
+
+backport octopus:
+  - doc/releases/**
+
 build/ops:
   - "**/CMakeLists.txt"
   - admin/**
diff --git a/.github/workflows/label-releases-doc-prs.yml b/.github/workflows/label-releases-doc-prs.yml
new file mode 100644 (file)
index 0000000..1e95a95
--- /dev/null
@@ -0,0 +1,21 @@
+---
+name: "Label doc/releases PRs so our backport GitHub Action picks them up"
+
+on:
+  pull_request:
+    types:
+      - closed
+    branches:
+      - main
+    paths:
+      - 'doc/releases/**'
+
+jobs:
+  if_merged:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Assign labels based on modified files
+        uses: actions/labeler@9794b1493b6f1fa7b006c5f8635a19c76c98be95
+        with:
+          sync-labels: ''
+          repo-token: "${{ secrets.GITHUB_TOKEN }}"