Skip to content

Commit

Permalink
Similar to the one-shot in upstream pmr, but it can be used with mult…
Browse files Browse the repository at this point in the history
…iple projects. This is useful if you have something else handling the scheduling of pmr runs like cron or jenkins
  • Loading branch information
plars committed Aug 11, 2017
1 parent eb28cd0 commit 700177d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions process-merge-requests
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ def main():
group2.add_argument(
'--project_list', metavar=_('PROJECT'), nargs="+",
help=_("name of the launchpad project to process"))
parser.add_argument(
"--no-loop", action='store_true', default=False,
help=_("Check all projects for things to land once, then exit"))
parser.add_argument("-u", "--user",
help="Specify launchpad user id", metavar="USER")
parser.add_argument("--credentials",
Expand Down Expand Up @@ -356,6 +359,8 @@ def main():
_logger.error(_("No such project: %s"), project_name)
else:
merge_mergable_on_project(project, ns.user, ns.credentials)
if ns.no_loop:
break
time.sleep(60)
except KeyboardInterrupt:
pass
Expand Down

0 comments on commit 700177d

Please sign in to comment.