Skip to content

Commit 560b088

Browse files
committed
[SPARK-49379][FOLLOWUP] Add labler.yml workflow file
### What changes were proposed in this pull request? This PR aims to add a GitHub Action workflow file, `.github/workflows/.github` too. ### Why are the changes needed? Previously, we added only mapping file to `.github/labeler.yml` and missed this. - apache#100 ### Does this PR introduce _any_ user-facing change? No. This is an infra PR. ### How was this patch tested? Manual review. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#102 from dongjoon-hyun/SPARK-49379-2. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 5e7b8f4 commit 560b088

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.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+
# Intentionally has a general name.
21+
# because the test status check created in GitHub Actions
22+
# currently randomly picks any associated workflow.
23+
# So, the name was changed to make sense in that context too.
24+
# See also https://github.community/t/specify-check-suite-when-creating-a-checkrun/118380/10
25+
26+
name: "On pull requests"
27+
on: pull_request_target
28+
29+
jobs:
30+
label:
31+
name: Label pull requests
32+
runs-on: ubuntu-latest
33+
permissions:
34+
contents: read
35+
pull-requests: write
36+
steps:
37+
- uses: actions/labeler@v5
38+
with:
39+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
40+
sync-labels: true

0 commit comments

Comments
 (0)