新增: 组织下项目需返回是否为公有项目字段

This commit is contained in:
yystopf 2022-05-30 14:50:12 +08:00
parent a6e50d2a25
commit 169dc84e22
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
json.total_count @projects.total_count
json.projects @projects.each do |project|
json.(project, :id, :name, :identifier, :description, :forked_count, :praises_count, :forked_from_project_id)
json.(project, :id, :name, :identifier, :description, :forked_count, :praises_count, :forked_from_project_id, :is_public)
json.mirror_url project.repository&.mirror_url
json.type project.numerical_for_project_type
json.praised project.praised_by?(current_user)