Skip to content

Commit 4b6f2f5

Browse files
committed
BaseTools/Scripts: PatchCheck support CODEOWNERS locations
Update PatchCheck.py to support all possible CODEOWNERS and REVIEWERS file locations. https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-file-location Signed-off-by: Michael D Kinney <[email protected]>
1 parent 93992fd commit 4b6f2f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: BaseTools/Scripts/PatchCheck.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ def run(self):
368368
self.filename.startswith('BaseTools/BinPipWrappers/PosixLike/') or \
369369
self.filename.startswith('BaseTools/Bin/CYGWIN_NT-5.1-i686/') or \
370370
self.filename == 'BaseTools/BuildEnv' or \
371-
self.filename.endswith('CODEOWNERS') or \
372-
self.filename.endswith('REVIEWERS'):
371+
self.filename in ['CODEOWNERS', '.github/CODEOWNERS', 'docs/CODEOWNERS'] or \
372+
self.filename in ['REVIEWERS', '.github/REVIEWERS', 'docs/REVIEWERS']:
373373
#
374374
# Do not enforce CR/LF line endings for linux shell scripts.
375375
# Some linux shell scripts don't end with the ".sh" extension,

0 commit comments

Comments
 (0)