diff --git a/.github/workflow-config/labeling-rules.yaml b/.github/workflow-config/labeling-rules.yaml new file mode 100644 index 00000000..70e59e39 --- /dev/null +++ b/.github/workflow-config/labeling-rules.yaml @@ -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/**' diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml new file mode 100644 index 00000000..de0b0e9a --- /dev/null +++ b/.github/workflows/labeler.yaml @@ -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