Commit f2979ccf authored by E. Levi Allen's avatar E. Levi Allen

Modified File Layout

parent 68beef69
Pipeline #26339438 passed with stages
in 42 minutes and 11 seconds
......@@ -600,13 +600,13 @@ module QuickActions
if users.empty?
users = case params
when 'me'
[current_user]
when 'assigner'
[find_assigner(issuable, current_user)]
else
User.where(username: params.split(' ').map(&:strip))
end
when 'me'
[current_user]
when 'assigner'
[find_assigner(issuable, current_user)]
else
User.where(username: params.split(' ').map(&:strip))
end
end
users
......@@ -630,7 +630,7 @@ module QuickActions
end
def find_assigner(issuable, current_user)
assigner = issuable.notes.where.not(author_id: current_user.id).select {|notes| notes[:note].include? "assigned to @#{current_user.username}"}.last.author
issuable.notes.where.not(author_id: current_user.id).select {|notes| notes[:note].include? "assigned to @#{current_user.username}"}.last.author
end
def find_pong_recipient(project, params = {})
......
---
title: Added QuickAction "/pong assigner" to allow quick return of issuables to an
approver.
merge_request:
author:
type: added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment