Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
[AIRFLOW-6447] Add GitHub Action to add Labels on Pull Requests (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxil authored and galuszkak committed Mar 5, 2020
1 parent bbaedfb commit 1fa55dd
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/.github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -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
61 changes: 61 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1fa55dd

Please sign in to comment.