# HG changeset patch # User Teemu Piippo # Date 1411982546 -10800 # Node ID 237e82bcd02f7a6cc8735299bf9346ce16d1872d # Parent 1a1ee9e8bda6f06143eb0b5f65aa0a97b60f857a - update target version in tickets when acting upon commit data diff -r 1a1ee9e8bda6 -r 237e82bcd02f cobalt.py --- a/cobalt.py Mon Sep 29 04:26:27 2014 +0300 +++ b/cobalt.py Mon Sep 29 12:22:26 2014 +0300 @@ -392,6 +392,21 @@ need_update = True #fi + # Set target version if not set + if not 'target_version' in ticket_data: + ticket_data['target_version'] = '1.3' if repo_name == 'zandronum-stable' else '2.0' + need_update = True + elif (ticket_data['target_version'] == '2.0' or ticket_data['target_version'] == '2.0-beta') \ + and repo_name == 'zandronum-stable': + # Target version was 2.0 but this was just committed to zandronum-stable, adjust + ticket_data['target_version'] = '1.3' + need_update = True + elif ticket_data['target_version'] == '2.0-beta': + # Fix target version from 2.0-beta to 2.0 + ticket_data['target_version'] = '2.0' + need_update = True + #fi + # Announce on IRC for irc_client in g_clients: for channel in irc_client.cfg['channels']: