diff --git a/.github/.github/workflows/label.yml b/.github/.github/workflows/label.yml new file mode 100644 index 000000000000..c3ab5341b25a --- /dev/null +++ b/.github/.github/workflows/label.yml @@ -0,0 +1,38 @@ +# 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. +--- +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# The workflow relies on .github/labeler.yml file which contains configuration. +# For more information, see: +# https://github.com/actions/labeler/blob/master/README.md + +name: Pull Request labeler +on: + schedule: + - cron: '*/5 * * * *' + +jobs: + labeler: + runs-on: ubuntu-latest + steps: + - uses: paulfantom/periodic-labeler@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} + LABEL_MAPPINGS_FILE: .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000000..575ea88169bb --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,61 @@ +# 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. +--- + +provider:GCP: + - airflow/**/gcp/* + - airflow/gcp/* + - airflow/providers/google/cloud/* + - airflow/**/gcp_*.py + - airflow/**/gcs_*.py + - airflow/**/bigquery_*.py + +provider:AWS: + - airflow/**/aws/* + - airflow/providers/amazon/aws/* + - airflow/**/aws_*.py + - airflow/**/ecs_*.py + - airflow/**/emr_*.py + - airflow/**/sagemaker_*.py + +provider:Azure: + - airflow/**/azure/* + - airflow/**/azure_*.py + - airflow/**/adls_*.py + - airflow/**/wasb_*.py + +provider:Apache: + - airflow/providers/apache/* + +k8s: + - airflow/**/kubernetes_*.py + - airflow/kubernetes/* + +area:dev: + - scripts/* + - dev/* + +area:docs: + - docs/* + +area:webserver: + - airflow/www/* + - airflow/www_rbac/* + +area:cli: + - airflow/bin/cli.py + - airflow/cli/**/*.py