]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
github: autolabel PRs
authorErnesto Puerta <epuertat@redhat.com>
Thu, 12 Nov 2020 17:07:44 +0000 (18:07 +0100)
committerKefu Chai <kchai@redhat.com>
Mon, 8 Mar 2021 19:52:44 +0000 (03:52 +0800)
... starting with dashboard ones.

Requires https://github.com/marketplace/actions/labeler

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit 298bc67f7b8d1c64520b543f4749b29f7be67379)

Conflicts:
.github/CODEOWNERS: drop change in .github/CODEOWNERS
          as we don't have this file in nautilus.

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

diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644 (file)
index 0000000..d4f9158
--- /dev/null
@@ -0,0 +1,10 @@
+dashboard:
+  - /src/pybind/mgr/dashboard/**
+  - /qa/suites/rados/dashboard/**
+  - /qa/tasks/mgr/test_dashboard.py
+  - /qa/tasks/mgr/dashboard/**
+  - /monitoring/**
+  - /doc/mgr/dashboard.rst
+
+CI:
+  - /.github/**
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
new file mode 100644 (file)
index 0000000..23956a0
--- /dev/null
@@ -0,0 +1,11 @@
+name: "Pull Request Labeler"
+on:
+- pull_request_target
+
+jobs:
+  triage:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/labeler@main
+      with:
+        repo-token: "${{ secrets.GITHUB_TOKEN }}"