Skip to content

Commit

Permalink
chore: add PR labeler workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tobz committed Jul 18, 2024
1 parent 7479169 commit 57d2912
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
82 changes: 82 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Generic component-level labels and high-level groupings.
"area/core":
- changed-files:
- any-glob-to-any-file:
- "lib/saluki-core/**/*"
- "lib/saluki-context/**/*"
- "lib/saluki-event/**/*"
- "lib/saluki-error/**/*"
- "lib/ddsketch-agent/**/*"

"area/config":
- changed-files:
- any-glob-to-any-file:
- "lib/saluki-config/**/*"
- "lib/saluki-env/**/*"

"area/ci":
- changed-files:
- any-glob-to-any-file:
- ".gitlab/**/*"
- ".ci/**/*"
- "test/smp/**/*"
- ".gitlab-ci.yml"

"area/components":
- changed-files:
- any-glob-to-any-file:
- "lib/saluki-components/**/*"

"area/io":
- changed-files:
- any-glob-to-any-file:
- "lib/saluki-io/**/*"
- "lib/datadog-protos/**/*"

"area/memory":
- changed-files:
- any-glob-to-any-file:
- "lib/memory-accounting/**/*"
- "lib/stringtheory/**/*"

"area/observability":
- changed-files:
- any-glob-to-any-file:
- "lib/saluki-app/**/*"
- "lib/saluki-metrics/**/*"

"source/dogstatsd":
- changed-files:
- any-glob-to-any-file: ["lib/saluki-components/src/sources/dogstatsd/**/*"]

"source/internal-metrics":
- changed-files:
- any-glob-to-any-file: ["lib/saluki-components/src/sources/internal_metrics/**/*"]

"transform/aggregate":
- changed-files:
- any-glob-to-any-file: ["lib/saluki-components/src/transforms/aggregate/**/*"]

"transform/chained":
- changed-files:
- any-glob-to-any-file: ["lib/saluki-components/src/transforms/chained/**/*"]

"transform/host-enrichment":
- changed-files:
- any-glob-to-any-file: ["lib/saluki-components/src/transforms/host_enrichment/**/*"]

"transform/origin-enrichment":
- changed-files:
- any-glob-to-any-file: ["lib/saluki-components/src/transforms/origin_enrichment/**/*"]

"destination/blackhole":
- changed-files:
- any-glob-to-any-file: ["lib/saluki-components/src/destinations/blackhole/**/*"]

"destination/datadog-metrics":
- changed-files:
- any-glob-to-any-file: ["lib/saluki-components/src/destinations/datadog_metrics/**/*"]

"destination/prometheus":
- changed-files:
- any-glob-to-any-file: ["lib/saluki-components/src/destinations/prometheus/**/*"]
16 changes: 16 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
label:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

0 comments on commit 57d2912

Please sign in to comment.