From 4f236e66b848dc9dfb2ed78271526a946f97dfdb Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Thu, 8 Sep 2022 14:20:28 -0700 Subject: [PATCH] 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 --- BaseTools/Scripts/PatchCheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseTools/Scripts/PatchCheck.py b/BaseTools/Scripts/PatchCheck.py index b5d9041fe6..867bdd7b1a 100755 --- a/BaseTools/Scripts/PatchCheck.py +++ b/BaseTools/Scripts/PatchCheck.py @@ -368,8 +368,8 @@ def run(self): self.filename.startswith('BaseTools/BinPipWrappers/PosixLike/') or \ self.filename.startswith('BaseTools/Bin/CYGWIN_NT-5.1-i686/') or \ self.filename == 'BaseTools/BuildEnv' or \ - self.filename.endswith('CODEOWNERS') or \ - self.filename.endswith('REVIEWERS'): + self.filename in ['CODEOWNERS', '.github/CODEOWNERS', 'docs/CODEOWNERS'] or \ + self.filename in ['REVIEWERS', '.github/REVIEWERS', 'docs/REVIEWERS']: # # Do not enforce CR/LF line endings for linux shell scripts. # Some linux shell scripts don't end with the ".sh" extension,