Allow calling tag functions from PostUploadHook
Calling CheckChangeHasNoUnwantedTags and CheckChangeHasBugFieldFromChange from a PostUploadHook is useful because it ensures that users will see a message if they add a bad tag when creating the commit message during upload. Allowing this requires creating entry points for these functions that take a change parameter instead of an input_api parameter. It also requires fixing our use of the deprecated inspect.getargspec function. In order to not tell users twice (once before and once after upload) that they haven't used a Bug: tag (it is optional, after all) a flag to make these suggestions optional is also added. This change is required in support of crrev.com/c/4490087. Bug: 1434702 Change-Id: I3fd909a71c6c7d7671d6f986ad60d5375143a2f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4519532 Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Commit-Queue: Bruce Dawson <brucedawson@chromium.org>changes/32/4519532/3
parent
85c13de0be
commit
05ebc9e3e0
Loading…
Reference in New Issue