Skip to content

Commit

Permalink
github: workflows: added Labeler
Browse files Browse the repository at this point in the history
  • Loading branch information
vpirogov committed Aug 24, 2024
1 parent fc22b0a commit 06f9e4c
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#===============================================================================
# Copyright 2024 Intel Corporation
#
# Licensed 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.
#===============================================================================

# This is configuration file for Labeler workflow. See documenation for syntax
# reference: https://github.com/marketplace/actions/labeler

# Labels based on area of responsibility
# Process definition and code owners
governance:
- changed-files:
- any-glob-to-any-file: ['*', 'rfcs/template.md', '.github/CODEOWNERS']

# Github automation
devops:
- all:
- changed-files:
- any-glob-to-any-file: '.github/**'
- all-globs-to-all-files: '!.github/CODEOWNERS'

# RFC
RFC:
- all:
- changed-files:
- any-glob-to-any-file: 'rfcs/**'
- all-globs-to-all-files: '!rfcs/template.md'
34 changes: 34 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#===============================================================================
# Copyright 2024 Intel Corporation
#
# Licensed 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: Labeler
on: [pull_request_target]

# Declare default permissions as read only.
permissions: read-all

jobs:
label:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/[email protected]
with:
sync-labels: true
configuration-path: '.github/labels.yml'

0 comments on commit 06f9e4c

Please sign in to comment.