新增:issue更新者字段

This commit is contained in:
2023-11-14 10:52:15 +08:00
parent 32386c2f66
commit 0c553203c1
5 changed files with 17 additions and 0 deletions

View File

@@ -33,6 +33,13 @@ json.author do
json.nil!
end
end
json.changer do
if issue.changer.present?
json.partial! "api/v1/users/simple_user", locals: {user: issue.changer}
else
json.nil!
end
end
json.assigners issue.show_assigners.each do |assigner|
json.partial! "api/v1/users/simple_user", locals: {user: assigner}
end