Skip to content

Commit cf73537

Browse files
committed
github: workflows: added Labeler
1 parent faa573c commit cf73537

File tree

2 files changed

+119
-0
lines changed

2 files changed

+119
-0
lines changed

.github/labels.yml

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
#===============================================================================
2+
# Copyright 2024 Intel Corporation
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#===============================================================================
16+
17+
# This is configuration file for Labeler workflow. See documenation for syntax
18+
# reference: https://github.com/marketplace/actions/labeler
19+
20+
# Labels based on area of responsibility
21+
# Process definition and code owners
22+
governance:
23+
- changed-files:
24+
- any-glob-to-any-file:
25+
- '.github/CODEOWNERS'
26+
- 'SECURITY.md'
27+
- 'MAINTAINERS.md'
28+
- 'CONTRIBUTING.md'
29+
- 'CODING_STANDARDS.md'
30+
- 'CODE_OF_CONDUCT.md'
31+
32+
# Github automation
33+
devops:
34+
- all:
35+
- changed-files:
36+
- any-glob-to-any-file: '.github/**'
37+
- all-globs-to-all-files: '!.github/CODEOWNERS'
38+
39+
# Documentation
40+
documentation:
41+
- changed-files:
42+
- any-glob-to-any-file: ['**/*.md', 'doc/**']
43+
44+
# CPU Engine
45+
platform:cpu-aarch64:
46+
- changed-files:
47+
- any-glob-to-any-file: 'src/cpu/aarch64/**'
48+
49+
platform:cpu-ppc64:
50+
- changed-files:
51+
- any-glob-to-any-file: 'src/cpu/ppc64/**'
52+
53+
platform:cpu-rv64:
54+
- changed-files:
55+
- any-glob-to-any-file: 'src/cpu/rv64/**'
56+
57+
platform:cpu-s390x:
58+
- changed-files:
59+
- any-glob-to-any-file: 'src/cpu/s390x/**'
60+
61+
platform:cpu-x64:
62+
- changed-files:
63+
- any-glob-to-any-file: ['src/cpu/x64/**', 'src/cpu/rnn/**']
64+
65+
# GPU Engine
66+
platform:gpu-amd:
67+
- changed-files:
68+
- any-glob-to-any-file: 'src/gpu/amd/**'
69+
70+
platform:gpu-intel:
71+
- changed-files:
72+
- any-glob-to-any-file: 'src/gpu/intel/**'
73+
74+
platform:gpu-nvidia:
75+
- changed-files:
76+
- any-glob-to-any-file: 'src/gpu/nvidia/**'
77+
78+
platform:gpu-generic:
79+
- changed-files:
80+
- any-glob-to-any-file: 'src/gpu/generic/**'
81+
82+
# Labels based on target branch
83+
# Backport
84+
backport:
85+
- base-branch: 'rls-*'

.github/workflows/labeler.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#===============================================================================
2+
# Copyright 2024 Intel Corporation
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#===============================================================================
16+
17+
name: Labeler
18+
on: [pull_request_target]
19+
20+
# Declare default permissions as read only.
21+
permissions: read-all
22+
23+
jobs:
24+
label:
25+
runs-on: ubuntu-latest
26+
permissions:
27+
contents: read
28+
pull-requests: write
29+
30+
steps:
31+
- uses: actions/labeler@v5.0.0
32+
with:
33+
sync-labels: true
34+
configuration-path: '.github/labels.yml'

0 commit comments

Comments
 (0)