From 959e6d6f3ea9a4a6a9ac174b11fc2011ec88a7d5 Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Tue, 30 Jun 2020 10:44:58 +0800 Subject: [PATCH 1/2] ADD type for project simpe api --- app/helpers/projects_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index aeae32158..139255c81 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -43,6 +43,7 @@ module ProjectsHelper identifier: project.identifier, name: project.name, id: project.id, + type: project.numerical_for_project_type, author: { login: project.owner.login, name: project.owner.real_name, From 88ee4830f220b3eaaca31477b83359f9f14034d6 Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Tue, 30 Jun 2020 11:16:18 +0800 Subject: [PATCH 2/2] ADD mirror_url to simpe project api --- app/helpers/projects_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 139255c81..f5df048dc 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -35,6 +35,7 @@ module ProjectsHelper tmp_json = tmp_json.merge({ mirror_status: repo.mirror_status, mirror_num: repo.mirror_num, + mirror_url: repo.mirror_url, first_sync: repo.first_sync? }) end