From c04a17f1160e3dedcdf294d09f878136af75172a Mon Sep 17 00:00:00 2001 From: Ayush Saxena Date: Tue, 25 Jul 2023 03:04:49 +0530 Subject: [PATCH] HADOOP-18823. Add Labeler Github Action. (#5874). Contributed by Ayush Saxena. Reviewed-by: He Xiaoqiao --- .github/labeler.yml | 57 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 40 ++++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100755 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100755 index 0000000000..a3fa437e0d --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,57 @@ +# +# +# 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 + +trunk: + - '**' +INFRA: + - .asf.yaml + - .gitattributes + - .gitignore + - .github/** + - dev-support/** + - start-build-env.sh +BUILD: + - '**/pom.xml' +COMMON: + - hadoop-common-project/** +HDFS: + - hadoop-hdfs-project/** +RBF: + - hadoop-hdfs-project/hadoop-hdfs-rbf/** +NATIVE: + - hadoop-hdfs-project/hadoop-hdfs-native-client/** + - hadoop-common-project/hadoop-common/src/main/native/** +YARN: + - hadoop-yarn-project/** +MAPREDUCE: + - hadoop-mapreduce-project/** +DISTCP: + - hadoop-tools/hadoop-distcp/** +TOOLS: + - hadoop-tools/** +AWS: + - hadoop-tools/hadoop-aws/** +ABFS: + - hadoop-tools/hadoop-azure/** +DYNAMOMETER: + - hadoop-tools/hadoop-dynamometer/** +MAVEN-PLUGINS: + - hadoop-maven-plugins/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..f85aff05dd --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,40 @@ +# +# 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 + +permissions: + contents: read + pull-requests: write + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + sparse-checkout: | + .github + - uses: actions/labeler@v4.3.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + sync-labels: true + configuration-path: .github/labeler.yml + dot: true \ No newline at end of file