Look for all bugs that have an ubuntu-18.04-hwe task that either has not
yet been given a milestone, or the milestone has an estimated release
date after the release date of ubuntu-18.04.3. These bugs get the
ubuntu-18.04.3-ga-risky tag applied. All other bugs get it removed.
When called w/o an argument, lp-bulk-action.py gives a traceback:
$ ./lp-bulk-action.py
Traceback (most recent call last):
File "./lp-bulk-action.py", line 77, in <module>
if args.cmd == 'create-milestone':
AttributeError: 'Namespace' object has no attribute 'cmd'
Enforce the subcommand requirement so that we get a more useful message:
$ ./lp-bulk-action.py
usage: lp-bulk-action.py [-h] {create-milestone,release-milestone,create-series} ...
lp-bulk-action.py: error: the following arguments are required: cmd
Rework the argument parsing to use subparsers to make it easier to vary
the arguments used for different sub commands and use that to add new
'create-series' command.
Rename and refactor to prepare to support additional actions
There are several more actions beyond creating milestones that'd be useful
to automate across projects. Add an "action" argument, which for now can
only be "create-milestone". Also rename script to reflect its generality.