-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (38 loc) · 1.23 KB
/
CheckCodeOwnerFiles.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
## @file
# Check CODEOWNERS coverage of all files in PR
#
# Only run this check if one or more files modified in the PR
# are not CODEOWNERS, REVIEWERS, or Maintainers.txt.
#
# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
name: Check CODEOWNERS coverage of all files in PR
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- 'master'
paths-ignore:
- 'CODEOWNERS'
- 'docs/CODEOWNERS'
- '.github/CODEOWNERS'
- 'REVIEWERS'
- 'docs/REVIEWERS'
- '.github/REVIEWERS'
- 'Maintainers.txt'
jobs:
codeowners_files_validator:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout Pull Request
uses: actions/checkout@v4
- name: CODEOWNERS Validator
uses: mszostok/[email protected]
with:
checks: "files"
experimental_checks: "notowned"
github_app_id: ${{ secrets.APPLICATION_ID }}
github_app_installation_id: ${{ secrets.APPLICATION_INSTALLATION_ID }}
github_app_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }}