Skip to content

Commit d4c55e6

Browse files
committed
Add Labeler Github Action.
1 parent 4d4b099 commit d4c55e6

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

.github/labeler.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
# Pull Request Labeler Github Action Configuration: https://github.com/marketplace/actions/labeler
20+
21+
trunk:
22+
- '**'
23+
INFRA:
24+
- .asf.yaml
25+
- .gitattributes
26+
- .gitignore
27+
- .github/**
28+
- dev-support/**
29+
BUILD:
30+
- any: [ '/**/pom.xml' ]
31+
COMMON:
32+
- hadoop-common-project/**
33+
HDFS:
34+
- hadoop-hdfs-project/**
35+
RBF:
36+
- hadoop-hdfs-project/hadoop-hdfs-rbf/**
37+
HDFS-NATIVE:
38+
- hadoop-hdfs-project/hadoop-hdfs-native-client/**
39+
YARN:
40+
- hadoop-yarn-project/**
41+
MAPREDUCE:
42+
- hadoop-mapreduce-project/**
43+
DISTCP:
44+
- hadoop-tools/hadoop-distcp/**
45+
TOOLS:
46+
- hadoop-tools/**
47+
AWS:
48+
- hadoop-tools/hadoop-aws/**
49+
ABFS:
50+
- hadoop-tools/hadoop-azure/**
51+
DYNAMOMETER:
52+
- hadoop-tools/hadoop-dynamometer/**
53+
MAVEN-PLUGINS:
54+
- hadoop-maven-plugins/**

.github/workflows/labeler.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 ]
22+
23+
jobs:
24+
triage:
25+
runs-on: ubuntu-latest
26+
permissions:
27+
contents: read
28+
pull-requests: write
29+
steps:
30+
- run: |
31+
echo ${{ github.workspace }}
32+
echo $GITHUB_WORKSPACE
33+
- uses: actions/[email protected]
34+
with:
35+
repo-token: ${{ secrets.GITHUB_TOKEN }}
36+
sync-labels: true
37+
configuration-path: .github/labeler.yml
38+
dot: true

0 commit comments

Comments
 (0)