diff --git a/.changeset/sour-snails-thank.md b/.changeset/sour-snails-thank.md new file mode 100644 index 0000000000..1ff4f1ef7a --- /dev/null +++ b/.changeset/sour-snails-thank.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-cloudbuild': minor +--- + +Added a new column to `EntityCloudbuildContent` displaying the trigger name for each build. diff --git a/docs/assets/plugins/cloudbuild/CloudBuildPlugin.png b/docs/assets/plugins/cloudbuild/CloudBuildPlugin.png index 3b347f0f68..ae4f773e8a 100644 Binary files a/docs/assets/plugins/cloudbuild/CloudBuildPlugin.png and b/docs/assets/plugins/cloudbuild/CloudBuildPlugin.png differ diff --git a/plugins/cloudbuild/api-report.md b/plugins/cloudbuild/api-report.md index 2ce42d5e34..24cdc957b5 100644 --- a/plugins/cloudbuild/api-report.md +++ b/plugins/cloudbuild/api-report.md @@ -257,6 +257,8 @@ export interface Substitutions { REVISION_ID: string; // (undocumented) SHORT_SHA: string; + // (undocumented) + TRIGGER_NAME: string; } // @public (undocumented) 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.test.tsx b/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.test.tsx index 92a806bee7..6224392c77 100644 --- a/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.test.tsx +++ b/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.test.tsx @@ -37,6 +37,7 @@ describe('', () => { SHORT_SHA: 'f12j1231', REF_NAME: 'main', REPO_NAME: 'backstage', + TRIGGER_NAME: 'trigger', REVISION_ID: 'g123123', }, createTime: '2014-10-02T15:01:23.045123456Z', 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',