util: Use MAINTAINERS.yaml for valid tags in git hook
authorMatthew Poremba <matthew.poremba@amd.com>
Sat, 7 Nov 2020 21:36:54 +0000 (15:36 -0600)
committerJason Lowe-Power <power.jg@gmail.com>
Fri, 20 Nov 2020 16:32:02 +0000 (16:32 +0000)
commitce06a4715eca88589e31b75dd9f8791a240cb94c
treed4c78f95eeac0e79c0b462609be30c516a0774e8
parented3e52663b331f79b17fc24fce63bee4fd32c994
util: Use MAINTAINERS.yaml for valid tags in git hook

There is a mismatch between the tags in MAINTAINERS.yaml and the
valid_tags in the git hook. This means if a user consults the
MAINTAINERS.yaml file to find the appropriate tag, there is a chance of
the commit being rejected due to this mismatch. Now that the maintainers
file is in yaml format, use the util/maint library to parse the valid
tag options. Additional meta tags are added (WIP, RFC) and tags that
were previously valid but not in the MAINTAINERS.yaml file.

Change-Id: I3de8f0b6f8507aa1afd2118bc4373ac0610cce40
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37220
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
util/git-commit-msg.py
util/maint/__init__.py [new file with mode: 0644]