Skip to content

Commit c04a17f

Browse files
authored
HADOOP-18823. Add Labeler Github Action. (apache#5874). Contributed by Ayush Saxena.
Reviewed-by: He Xiaoqiao <hexiaoqiao@apache.org>
1 parent 90793e1 commit c04a17f

File tree

2 files changed

+97
-0
lines changed

2 files changed

+97
-0
lines changed

.github/labeler.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
#
20+
# Pull Request Labeler Github Action Configuration: https://github.com/marketplace/actions/labeler
21+
22+
trunk:
23+
- '**'
24+
INFRA:
25+
- .asf.yaml
26+
- .gitattributes
27+
- .gitignore
28+
- .github/**
29+
- dev-support/**
30+
- start-build-env.sh
31+
BUILD:
32+
- '**/pom.xml'
33+
COMMON:
34+
- hadoop-common-project/**
35+
HDFS:
36+
- hadoop-hdfs-project/**
37+
RBF:
38+
- hadoop-hdfs-project/hadoop-hdfs-rbf/**
39+
NATIVE:
40+
- hadoop-hdfs-project/hadoop-hdfs-native-client/**
41+
- hadoop-common-project/hadoop-common/src/main/native/**
42+
YARN:
43+
- hadoop-yarn-project/**
44+
MAPREDUCE:
45+
- hadoop-mapreduce-project/**
46+
DISTCP:
47+
- hadoop-tools/hadoop-distcp/**
48+
TOOLS:
49+
- hadoop-tools/**
50+
AWS:
51+
- hadoop-tools/hadoop-aws/**
52+
ABFS:
53+
- hadoop-tools/hadoop-azure/**
54+
DYNAMOMETER:
55+
- hadoop-tools/hadoop-dynamometer/**
56+
MAVEN-PLUGINS:
57+
- hadoop-maven-plugins/**

.github/workflows/labeler.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
name: "Pull Request Labeler"
21+
on: pull_request_target
22+
23+
permissions:
24+
contents: read
25+
pull-requests: write
26+
27+
jobs:
28+
triage:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v3
32+
with:
33+
sparse-checkout: |
34+
.github
35+
- uses: actions/labeler@v4.3.0
36+
with:
37+
repo-token: ${{ secrets.GITHUB_TOKEN }}
38+
sync-labels: true
39+
configuration-path: .github/labeler.yml
40+
dot: true

0 commit comments

Comments
 (0)