Added preupload hook as reminder to update PDD
Added a presubmit hook as a reminder to update
the Wifi metrics PDD when metrics.proto is
changed.
Bug: 140895523
Test: create test CL that changes metrics.proto
Change-Id: Ieb7e8c5256d6726e78947b118dcf95ea2f5a5347
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 2673295..32b4e3b 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -1,5 +1,6 @@
[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
+metrics_pdd_hook = ${REPO_ROOT}/frameworks/opt/net/wifi/metrics_pdd_hook.py "service/proto/src/metrics.proto" ${PREUPLOAD_COMMIT_MESSAGE} ${PREUPLOAD_FILES}
[Builtin Hooks]
commit_msg_bug_field = true