From c4629ede3ee785492f862e195e416e01f089d838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=B1=E5=91=B1=E5=91=B1?= Date: Tue, 9 Sep 2025 16:36:49 +0800 Subject: [PATCH] add sca project id --- app/views/projects/_project_detail.json.jbuilder | 1 + app/views/projects/show.json.jbuilder | 1 + app/views/repositories/show.json.jbuilder | 1 + 3 files changed, 3 insertions(+) diff --git a/app/views/projects/_project_detail.json.jbuilder b/app/views/projects/_project_detail.json.jbuilder index 5c702ad7b..b0962db25 100644 --- a/app/views/projects/_project_detail.json.jbuilder +++ b/app/views/projects/_project_detail.json.jbuilder @@ -54,6 +54,7 @@ json.language do end json.is_member project.member?(current_user.try(:id)) json.is_need_apply project.is_need_apply +json.sca_project_id project.sca_project_id user_apply_signatures = project.apply_signatures.with_user_id(current_user.id) json.user_apply_signatures user_apply_signatures do |signature| json.id signature.id diff --git a/app/views/projects/show.json.jbuilder b/app/views/projects/show.json.jbuilder index 505c9ae4e..aa66808b4 100644 --- a/app/views/projects/show.json.jbuilder +++ b/app/views/projects/show.json.jbuilder @@ -6,6 +6,7 @@ json.description @project.description json.repo_id @project.repository.id json.repo_identifier @project.repository.identifier json.is_need_apply @project.is_need_apply +json.sca_project_id @project.sca_project_id user_apply_signatures = @project.apply_signatures.with_user_id(current_user.id) json.user_apply_signatures user_apply_signatures do |signature| json.id signature.id diff --git a/app/views/repositories/show.json.jbuilder b/app/views/repositories/show.json.jbuilder index c4f3e7c68..61ee6d3e2 100644 --- a/app/views/repositories/show.json.jbuilder +++ b/app/views/repositories/show.json.jbuilder @@ -19,6 +19,7 @@ json.type @project.numerical_for_project_type json.open_devops @project.open_devops? json.is_secret @project.is_secret json.is_need_apply @project.is_need_apply +json.sca_project_id @project.sca_project_id user_apply_signatures = @project.apply_signatures.with_user_id(current_user.id) json.user_apply_signatures user_apply_signatures do |signature| json.id signature.id