From 5a887fdd6664880fd9e90ee9afd5924473bf454e Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Mon, 1 Jun 2020 10:12:10 +0800 Subject: [PATCH] ADD repo_id column for projects api --- app/views/projects/index.json.jbuilder | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/projects/index.json.jbuilder b/app/views/projects/index.json.jbuilder index 858cb5ac2..446b622d4 100644 --- a/app/views/projects/index.json.jbuilder +++ b/app/views/projects/index.json.jbuilder @@ -4,6 +4,7 @@ json.projects @projects do |project| next if user.blank? json.id project.id + json.repo_id project&.repository.id json.identifier project.identifier json.name project.name json.description Nokogiri::HTML(project.description).text