Skip to content

Commit

Permalink
[INFRA] Support automatically label new pull requests (#6668)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses-you authored Aug 1, 2024
1 parent d476b37 commit d86b025
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 0 deletions.
95 changes: 95 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# 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.


INFRA:
- changed-files:
- any-glob-to-any-file: [
'.github/**/*',
'.asf.yaml',
'.gitattributes',
'LICENSE',
'LICENSE-binary',
'NOTICE',
'NOTICE-binary'
]

BUILD:
- changed-files:
- any-glob-to-any-file: [
'dev/**/*',
'cpp/compile.sh',
'ep/build-velox/src/get_velox.sh',
'ep/build-velox/src/build_velox.sh',
'ep/build-clickhouse/src/build_clickhouse.sh'
]

DOCS:
- changed-files:
- any-glob-to-any-file: [
'docs/**/*',
'**/README.md',
'**/CONTRIBUTING.md'
]

CORE:
- changed-files:
- any-glob-to-any-file: [
'gluten-core/**/*',
'shims/**/*',
'gluten-ras/**/*',
'gluten-ui/**/*',
'gluten-ut/**/*',
'package/**/*',
'pom.xml'
]

VELOX:
- changed-files:
- any-glob-to-any-file: [
'gluten-data/**/*',
'backends-velox/**/*',
'ep/build-velox/**/*',
'cpp/**/*'
]

CLICKHOUSE:
- changed-files:
- any-glob-to-any-file: [
'backends-clickhouse/**/*',
'ep/build-clickhouse/**/*',
'cpp-ch/**/*'
]

DATA_LAKE:
- changed-files:
- any-glob-to-any-file: [
'gluten-iceberg/**/*',
'gluten-delta/**/*'
]

RSS:
- changed-files:
- any-glob-to-any-file: [
'gluten-celeborn/**/*',
'gluten-uniffle/**/*'
]

TOOLS:
- changed-files:
- any-glob-to-any-file: [
'tools/**/*'
]

30 changes: 30 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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: "Label pull requests"
on: pull_request_target

jobs:
label:
name: Label pull requests
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

0 comments on commit d86b025

Please sign in to comment.