Skip to content

Commit

Permalink
github: autolabel PRs
Browse files Browse the repository at this point in the history
... starting with dashboard ones.

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

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit 298bc67)
  • Loading branch information
epuertat authored and Deepika Upadhyay committed Mar 12, 2021
1 parent 49ffdf7 commit b3fe2f7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/**
11 changes: 11 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit b3fe2f7

Please sign in to comment.