Skip to content

Commit

Permalink
add option to add no-qe-needed label
Browse files Browse the repository at this point in the history
  • Loading branch information
dhellmann committed Feb 19, 2024
1 parent 3820560 commit feed1da
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/jira/manage_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@ def command_start(args):
else:
print(f'...story points set to "{points}"')

if args.no_qe:
labels = ticket.fields.labels
if 'no-qe-needed' not in labels:
labels.append('no-qe-needed')
ticket.update(fields={'labels': labels})
print('...added no-qe-needed label')
else:
print('...already have no-qe-needed')

if args.sprint:
active_sprint = get_active_sprint(server, sprint_project_id)
if not active_sprint:
Expand Down Expand Up @@ -329,6 +338,13 @@ def main():
action='store_false',
help='set the sprint to the active sprint',
)
start_parser.add_argument(
'--no-qe',
dest='no_qe',
default=False,
action='store_true',
help='add the no-qe-needed label',
)
start_parser.add_argument(
'--review',
dest='status',
Expand Down

0 comments on commit feed1da

Please sign in to comment.