mirror of https://github.com/acidanthera/audk.git
BaseTools/Scripts/PatchCheck: Error if no Cc tags are present
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4694 If no Cc tags are detected in a commit message, then generate an error. All patches sent for review are required to provide the set of maintainers and reviewers responsible for the directories/files modified. The set of maintainers and reviewers are documented in Maintainers.txt and can be retrieved using the script BaseTools/Scripts/GetMaintainer.py. Cc: Rebecca Cran <rebecca@bsdio.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Yuwei Chen <yuwei.chen@intel.com> Cc: Michael Kubacki <mikuback@linux.microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Rebecca Cran <rebecca@bsdio.com>
This commit is contained in:
parent
45ad13bb64
commit
0bbec15b54
|
@ -229,8 +229,10 @@ class CommitMessageCheck:
|
|||
)
|
||||
|
||||
def check_misc_signatures(self):
|
||||
for sig in self.sig_types:
|
||||
self.find_signatures(sig)
|
||||
for sigtype in self.sig_types:
|
||||
sigs = self.find_signatures(sigtype)
|
||||
if sigtype == 'Cc' and len(sigs) == 0:
|
||||
self.error('No Cc: tags for maintainers/reviewers found!')
|
||||
|
||||
cve_re = re.compile('CVE-[0-9]{4}-[0-9]{5}[^0-9]')
|
||||
|
||||
|
|
Loading…
Reference in New Issue