...
 
......@@ -132,10 +132,10 @@ module QuickActions
end
desc do
"Returns to previous assignee"
"Assign to previous assignee"
end
explanation do
"Returns to previous assignee."
"Assign to previous assignee."
end
condition do
issuable.is_a?(MergeRequest) &&
......@@ -631,10 +631,6 @@ module QuickActions
"%assigned to @#{current_user.username}%", current_user.id) || ""
end
def find_pong_recipient(project, params = {})
log_info([project, params])
end
def explain_commands(commands)
commands.map do |name, arg|
definition = self.class.definition_by_name(name)
......
---
title: Added quick action"/pong" to allow quick return of issues and merge requests to an
title: Added quick action "/pong" to allow quick return of issues and merge requests to an
approver or previous assignee.
merge_request:
author:
author: E. Levi Allen
type: added
......@@ -17,7 +17,7 @@ do.
| `/merge` | Merge (when pipeline succeeds) |
| `/title <New title>` | Change title |
| `/assign @username` | Assign |
| `/pong` | Return to previous assignee|
| `/pong` | Assign to previous assignee |
| `/unassign` | Remove assignee |
| `/milestone %milestone` | Set milestone |
| `/remove_milestone` | Remove milestone |
......
......@@ -517,7 +517,7 @@ describe QuickActions::InterpretService do
end
context 'Merge Request' do
it 'fetches assigner and populates assignee_ids if content contains /pong' do
it 'fetches previous assignee and populates assignee_ids if content contains /pong' do
_, updates = service.execute(content, merge_request)
expect(updates).not_to eq(assignee_ids: [developer.id])
......