From fbe3f9b1cdfdc07aa250c33fa7ed6b939de9089a Mon Sep 17 00:00:00 2001 From: DaisukeHirabayashi Date: Wed, 13 Mar 2024 17:44:05 +0900 Subject: [PATCH] =?UTF-8?q?trigger=20name=E3=81=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: DaisukeHirabayashi --- plugins/cloudbuild/src/api/types.ts | 1 + .../components/WorkflowRunsTable/WorkflowRunsTable.tsx | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/plugins/cloudbuild/src/api/types.ts b/plugins/cloudbuild/src/api/types.ts index b721e8dca1..06fe2f9102 100644 --- a/plugins/cloudbuild/src/api/types.ts +++ b/plugins/cloudbuild/src/api/types.ts @@ -83,6 +83,7 @@ export interface Substitutions { SHORT_SHA: string; REF_NAME: string; REPO_NAME: string; + TRIGGER_NAME: string; REVISION_ID: string; } diff --git a/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx b/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx index cda5f16116..5dc9005126 100644 --- a/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx +++ b/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx @@ -54,6 +54,14 @@ const generatedColumns: TableColumn[] = [ ), }, + { + title: 'Trigger Name', + render: (row: Partial) => ( + + {row.substitutions?.TRIGGER_NAME} + + ), + }, { title: 'Source', field: 'source',