Skip to content

Commit

Permalink
Add labeler github action (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
clamoriniere authored Feb 22, 2024
1 parent db5a4d7 commit 130a504
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/labeler/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
chart/datadog:
- changed-files:
- any-glob-to-any-file: "charts/datadog/**"

chart/datadog-crds:
- changed-files:
- any-glob-to-any-file: "charts/datadog-crds/**"
- any-glob-to-any-file: "crds/**"

chart/datadog-operator:
- changed-files:
- any-glob-to-any-file: "charts/datadog-operator/**"

chart/extended-daemon-set:
- changed-files:
- any-glob-to-any-file: "charts/extended-daemon-set/**"

chart/watermarkpodautoscaler:
- changed-files:
- any-glob-to-any-file: "charts/watermarkpodautoscaler/**"

chart/observability-pipelines-worker:
- changed-files:
- any-glob-to-any-file: "charts/observability-pipelines-worker/**"

chart/synthetics-private-location:
- changed-files:
- any-glob-to-any-file: "charts/synthetics-private-location/**"

tools/tests:
- changed-files:
- any-glob-to-any-file: "tests/**"

tools/ci:
- changed-files:
- any-glob-to-any-file: ".github/**"
- any-glob-to-any-file: ".gitlab-ci.yml"
- any-glob-to-any-file: "Makefile"

documentation:
- changed-files:
- any-glob-to-any-file: "README.md"
- any-glob-to-any-file: "examples/**"
- any-glob-to-any-file: "CONTRIBUTING.md"
- any-glob-to-any-file: "LICENSE"
16 changes: 16 additions & 0 deletions .github/workflows/pr-labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Labeler
on:
pull_request:
branches:
- main

jobs:
label:
name: Add label for PRs
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/workflows/labeler/labels.yaml

0 comments on commit 130a504

Please sign in to comment.