| |
@@ -419,7 +419,10 @@
|
| |
'manually verify it.')
|
| |
click.secho(msg, fg='yellow')
|
| |
|
| |
- action = prompt_for_ticket_action()
|
| |
+ if auto_approve == False:
|
| |
+ action = prompt_for_ticket_action()
|
| |
+ else:
|
| |
+ action = 'approve'
|
| |
|
| |
if action == 'approve':
|
| |
# Create the PDC SLA entry
|
| |
@@ -468,7 +471,7 @@
|
| |
'You may commit to the branch "{1}" in about '
|
| |
'10 minutes.'.format(dist_git_url,
|
| |
branch_name))
|
| |
- comment_and_close_ticket(issue_id, bug_id, new_repo_comment)
|
| |
+ comment_and_close_ticket(issue_id, bug_id, new_repo_comment, prompt_for_comment=False)
|
| |
elif action == 'deny':
|
| |
comment_body = click.prompt(
|
| |
'Please enter a comment explaining the denial')
|
| |
@@ -561,7 +564,10 @@
|
| |
click.echo(' Git Branch: {0}'.format(bool_to_word(
|
| |
create_git_branch)))
|
| |
|
| |
- action = prompt_for_ticket_action()
|
| |
+ if auto_approve == False:
|
| |
+ action = prompt_for_ticket_action()
|
| |
+ else:
|
| |
+ action = 'approve'
|
| |
|
| |
if action == 'approve':
|
| |
pagure_url = get_config_item(CONFIG, 'pagure_dist_git_url')
|
| |
@@ -591,7 +597,7 @@
|
| |
'the request, but in about 10 minutes, you may create the '
|
| |
'branch in Pagure using git.')
|
| |
comment_and_close_ticket(issue_id, bug_id, new_branch_comment,
|
| |
- prompt_for_comment=not auto_approved)
|
| |
+ prompt_for_comment=False)
|
| |
elif action == 'deny':
|
| |
comment_body = click.prompt(
|
| |
'Please enter a comment explaining the denial')
|
| |
.gitignore addition
Bump version.
I'm not sure if this is desired, but it's really helping me out with the golang requests. And it could be helpful for epel8.