From 298bc67f7b8d1c64520b543f4749b29f7be67379 Mon Sep 17 00:00:00 2001 From: Ernesto Puerta Date: Thu, 12 Nov 2020 18:07:44 +0100 Subject: [PATCH] github: autolabel PRs ... starting with dashboard ones. Requires https://github.com/marketplace/actions/labeler Signed-off-by: Ernesto Puerta --- .github/CODEOWNERS | 3 +-- .github/labeler.yml | 10 ++++++++++ .github/workflows/labeler.yml | 11 +++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3ceb0809042..23749a1d38c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -3,8 +3,7 @@ /qa/suites/rados/dashboard @ceph/dashboard /qa/tasks/mgr/test_dashboard.py @ceph/dashboard /qa/tasks/mgr/dashboard @ceph/dashboard -/monitoring/grafana @ceph/dashboard -/monitoring/prometheus @ceph/dashboard +/monitoring @ceph/dashboard /doc/mgr/dashboard.rst @ceph/dashboard # Dashboard API team diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000000..d4f91584cb1 --- /dev/null +++ b/.github/labeler.yml @@ -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 index 00000000000..23956a02fbd --- /dev/null +++ b/.github/workflows/labeler.yml @@ -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 }}" -- 2.47.3