HADOOP-18823. Add Labeler Github Action. (#5874). Contributed by Ayush Saxena.
Reviewed-by: He Xiaoqiao <hexiaoqiao@apache.org>
This commit is contained in:
parent
90793e1bce
commit
c04a17f116
57
.github/labeler.yml
vendored
Executable file
57
.github/labeler.yml
vendored
Executable file
@ -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
.github/workflows/labeler.yml
vendored
Normal file
40
.github/workflows/labeler.yml
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user