cobalt.py

changeset 35
237e82bcd02f
parent 34
1a1ee9e8bda6
child 36
543d7a5e3b8b
equal deleted inserted replaced
34:1a1ee9e8bda6 35:237e82bcd02f
387 # Find out the status level of the ticket 387 # Find out the status level of the ticket
388 needs_testing_level = 70 388 needs_testing_level = 70
389 389
390 if ticket_data['status']['id'] < needs_testing_level: 390 if ticket_data['status']['id'] < needs_testing_level:
391 ticket_data.status['id'] = needs_testing_level 391 ticket_data.status['id'] = needs_testing_level
392 need_update = True
393 #fi
394
395 # Set target version if not set
396 if not 'target_version' in ticket_data:
397 ticket_data['target_version'] = '1.3' if repo_name == 'zandronum-stable' else '2.0'
398 need_update = True
399 elif (ticket_data['target_version'] == '2.0' or ticket_data['target_version'] == '2.0-beta') \
400 and repo_name == 'zandronum-stable':
401 # Target version was 2.0 but this was just committed to zandronum-stable, adjust
402 ticket_data['target_version'] = '1.3'
403 need_update = True
404 elif ticket_data['target_version'] == '2.0-beta':
405 # Fix target version from 2.0-beta to 2.0
406 ticket_data['target_version'] = '2.0'
392 need_update = True 407 need_update = True
393 #fi 408 #fi
394 409
395 # Announce on IRC 410 # Announce on IRC
396 for irc_client in g_clients: 411 for irc_client in g_clients:

mercurial