abandon_stale: Allow weeks as an age parameter
Change-Id: I206a3b137fa5cf69f9b8a54541cf32c16a372d83
This commit is contained in:
@@ -101,7 +101,7 @@ def _main():
|
||||
logging.error("Gerrit URL is required")
|
||||
return 1
|
||||
|
||||
pattern = re.compile(r"^([\d]+)(months|years)")
|
||||
pattern = re.compile(r"^([\d]+)(months|years|weeks)")
|
||||
match = pattern.match(options.age)
|
||||
if not match:
|
||||
logging.error("Invalid age: %s", options.age)
|
||||
|
Reference in New Issue
Block a user