summaryrefslogtreecommitdiffstats
path: root/.github/workflows/labeler.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/labeler.yml')
-rw-r--r--.github/workflows/labeler.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
new file mode 100644
index 00000000..a1e3b52f
--- /dev/null
+++ b/.github/workflows/labeler.yml
@@ -0,0 +1,21 @@
+---
+# Handles labelling of PR's.
+name: Pull Request Labeler
+on:
+ pull_request_target: null
+concurrency:
+ group: pr-label-${{ github.repository_id }}-${{ github.event.pull_request.number }}
+ cancel-in-progress: true
+jobs:
+ labeler:
+ name: Apply PR Labels
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ pull-requests: write
+ steps:
+ - uses: actions/labeler@v4
+ if: github.repository == 'netdata/netdata'
+ with:
+ repo-token: "${{ secrets.GITHUB_TOKEN }}"
+ sync-labels: true