Skip to content

Commit

Permalink
HADOOP-18823. Add Labeler Github Action. (apache#5874). Contributed b…
Browse files Browse the repository at this point in the history
…y Ayush Saxena.

Reviewed-by: He Xiaoqiao <[email protected]>
  • Loading branch information
ayushtkn authored Jul 24, 2023
1 parent 90793e1 commit c04a17f
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/**
40 changes: 40 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: true
configuration-path: .github/labeler.yml
dot: true

0 comments on commit c04a17f

Please sign in to comment.