Skip to content

Commit

Permalink
feat: add labeler (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurFlag authored Feb 19, 2024
1 parent 8287254 commit f41a8a9
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflow-config/labeling-rules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#
# Rules for .github/workflows/labeler.yaml
#
platform:
- changed-files:
- any-glob-to-any-file: 'docs/platform/**'

service/cassandra:
- changed-files:
- any-glob-to-any-file: 'docs/products/cassandra/**'

service/clickhouse:
- changed-files:
- any-glob-to-any-file: 'docs/products/clickhouse/**'

service/dragonfly:
- changed-files:
- any-glob-to-any-file: 'docs/products/dragonfly/**'

service/flink:
- changed-files:
- any-glob-to-any-file: 'docs/products/flink/**'

service/kafka:
- changed-files:
- any-glob-to-any-file: 'docs/products/kafka/**'

service/m3db:
- changed-files:
- any-glob-to-any-file: 'docs/products/m3db/**'

service/mysql:
- changed-files:
- any-glob-to-any-file: 'docs/products/mysql/**'

service/postgre:
- changed-files:
- any-glob-to-any-file: 'docs/products/postgre/**'

service/redis:
- changed-files:
- any-glob-to-any-file: 'docs/products/redis/**'

tool/terraform:
- changed-files:
- any-glob-to-any-file: 'docs/tools/terraform/**'

tool/cli:
- changed-files:
- any-glob-to-any-file: 'docs/tools/cli/**'

tech:
- changed-files:
- any-glob-to-any-file: 'scripts/**'
- any-glob-to-any-file: '.github/**'
- any-glob-to-any-file: 'src/**'
16 changes: 16 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: PR labeler

on:
- pull_request

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
configuration-path: '.github/workflow-config/labeling-rules.yaml'
sync-labels: true

0 comments on commit f41a8a9

Please sign in to comment.