change the default from delayed-release to direct-release

Change the default behavior to update the status of the bug to fix
released instead of fix committed.

Change-Id: Id08565d54646cee6ce8262e0ef5cd63bf4f3dc7c
This commit is contained in:
Doug Hellmann 2015-11-23 21:11:10 +00:00
parent 6414c7b80b
commit 602a384c18
2 changed files with 4 additions and 4 deletions

View File

@ -215,7 +215,7 @@ def process_bugtask(launchpad, task, git_log, args):
if args.hook == "change-merged":
if args.branch == 'master':
if (p.is_direct_release(args.project) and
if (not p.is_delay_release(args.project) and
task.needs_change('set_fix_released')):
set_fix_released(bugtask)
else:

View File

@ -21,7 +21,7 @@ Expected review.projects.yaml format:
groups:
- awesome-group
options:
- direct-release
- delay-release
- no-launchpad-bugs
- no-launchpad-blueprints
"""
@ -82,9 +82,9 @@ def has_translations(project_full_name):
return False
def is_direct_release(project_full_name):
def is_delay_release(project_full_name):
try:
return 'direct-release' in registry[project_full_name]['options']
return 'delay-release' in registry[project_full_name]['options']
except KeyError:
return False