Skip to content
Closed
153 changes: 153 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# Pull Request Labeler Github Action Configuration: https://github.com/marketplace/actions/labeler

# INFRA has been updated
INFRA:
- ".github/**/*"
- "appveyor.yml"
- "tools/**/*"
- "/dev/create-release/**/*"
- ".asf.yaml"
- ".gitattributes"
- ".gitignore"
- "/dev/github_jira_sync.py"
- "/dev/merge_spark_pr.py"
- "/dev/run-tests-jenkins*"
# BUILD has been updated with some lingering questions
BUILD:
- any:
- "/dev/**/*"
- "/build/**/*"
- "/project/**/*"
- "/assembly/**/*"
- "**/*pom.xml"
- "/bin/docker-image-tool.sh"
- "/bin/find-spark-home*"
- "scalastyle-config.xml"
- all:
- "!/dev/github_jira_sync.py"
- "!/dev/merge_spark_pr.py"
- "!/dev/run-tests-jenkins*"
- "!/dev/.rat-excludes"
# DOCS has been updated - Need to test if the repo root README will catch
DOCS:
- "docs/**/*"
- "**/README.md"
- "**/CONTRIBUTING.md"
# EXAMPLES has been updated
EXAMPLES:
- "examples/**/*"
- "/bin/run-example*"
# Core has been updated with some verification needed.
CORE:
- "/core/**/*"
- "!**/UI.scala" # TODO - Verify this change
- "!**/ui/**/*" # TODO - Verify this change
- "/common/kvstore/**/*"
- "/common/network-common/**/*"
- "/common/network-shuffle/**/*"
- "/python/pyspark/**/*.py"
- "/python/pyspark/tests/**/*.py"
# Updated
SPARK SUBMIT:
- "/bin/spark-submit*"
# Updated
SPARK SHELL:
- "/repl/**/*"
- "/bin/spark-shell*"
# Updated - Needs testing
SQL:
- "**/sql/**/*"
- "/common/unsafe/**/*"
- "!/python/pyspark/sql/avro/**/*"
- "!/python/pyspark/sql/streaming.py"
- "!/python/pyspark/sql/tests/test_streaming.py"
- "/bin/spark-sql*"
- "/bin/beeline*"
- "/sbin/*thriftserver*.sh"
- "**/*SQL*.R"
- "**/*DataFrame.R" # TODO - Does ths need a star before DataFrame?
- "**/*WindowSpec.R"
- "**/*catalog.R"
- "**/*column.R"
- "**/*functions.R"
- "**/*group.R"
- "**/*schema.R"
- "**/*types.R"
# Updated
AVRO:
- "/external/avro/**/*"
- "/python/pyspark/sql/avro/**/*"
# Updated
DSTREAM:
- "/streaming/**/*"
- "/data/streaming/**/*"
- "/external/flume*" # TODO - Does this need to be /external/flume*/**/*? Need to test this
- "/external/kinesis*" # TODO - Same as above
- "/external/kafka*" # TODO - Same as above
- "/python/pyspark/streaming/**/*"
# Updated
GRAPHX:
- "/graphx/**/*"
- "/data/graphx/**/*"
# Updated
ML:
- "**/ml/**/*"
- "**/*mllib_*.R"
MLLIB:
- "**/spark/mllib/" # TODO - Is it intentional to not label mllib/benchmarks/* as MLLIB, etc?
- "/mllib-local/**/*"
- "/python/pyspark/mllib/**/*"
STRUCTURED STREAMING:
- "sql/**/streaming/**/*" # TODO - Does this one need a leading **/ editing?
- "/external/kafka-0-10-sql/**/*"
- "/python/pyspark/sql/streaming.py"
- "/python/pyspark/sql/tests/test_streaming.py"
- "**/*streaming.R"
# Updated - Needs tests
PYTHON:
- "/bin/pyspark*"
- "**/python/**/*" # TODO - Check this glob - was "python/"
# Updated - Needs tests
R:
- "**/r/**/*"
- "**/R/**/*" # TODO - Do these need also one for non-nested
- "/bin/sparkR*"
# Updated - Needs tests
YARN:
- "/resource-managers/yarn/**/*"
# Updated
MESOS:
- "/resource-managers/mesos/**/*"
- "/sbin/*mesos*.sh"
# Updated
KUBERNETES:
- "/resource-managers/kubernetes/**/*"
# Updated
WINDOWS:
- "**/*.cmd"
- "/R/pkg/tests/fulltests/test_Windows.R"
# Updated
WEB UI:
- "**/ui/**/*"
- "**/*UI.scala"
# Updated
DEPLOY:
- "/sbin/**/*"
30 changes: 30 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

name: "Pull Request Labeler"
on: pull_request_target

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true