From 7c71c37aba20bb8b5369f4355f0c17100bd7140b Mon Sep 17 00:00:00 2001 From: kaxil Date: Fri, 3 Jan 2020 22:35:27 +0000 Subject: [PATCH] [AIRFLOW-6447] Add GitHub Action to add Labels on Pull Requests --- .github/labeler.yml | 60 +++++++++++++++++++++++++++++++++++++ .github/workflows/label.yml | 34 +++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000000..5da98d8f7be63 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,60 @@ +# 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/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 diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000000000..3e095f0647130 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,34 @@ +# 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: Labeler +on: [pull_request] + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"