Merge pull request #23508 from DaisukeHirabayashi/feature/cloud-build-trigger-name

[GCP Cloudbuild plugin] Add Trigger Name
This commit is contained in:
Vincenzo Scamporlino
2024-03-22 18:54:27 +01:00
committed by GitHub
6 changed files with 17 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-cloudbuild': minor
---
Added a new column to `EntityCloudbuildContent` displaying the trigger name for each build.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 635 KiB

After

Width:  |  Height:  |  Size: 515 KiB

+2
View File
@@ -257,6 +257,8 @@ export interface Substitutions {
REVISION_ID: string;
// (undocumented)
SHORT_SHA: string;
// (undocumented)
TRIGGER_NAME: string;
}
// @public (undocumented)
+1
View File
@@ -83,6 +83,7 @@ export interface Substitutions {
SHORT_SHA: string;
REF_NAME: string;
REPO_NAME: string;
TRIGGER_NAME: string;
REVISION_ID: string;
}
@@ -37,6 +37,7 @@ describe('<WorkflowRunsTableView />', () => {
SHORT_SHA: 'f12j1231',
REF_NAME: 'main',
REPO_NAME: 'backstage',
TRIGGER_NAME: 'trigger',
REVISION_ID: 'g123123',
},
createTime: '2014-10-02T15:01:23.045123456Z',
@@ -54,6 +54,14 @@ const generatedColumns: TableColumn[] = [
</Typography>
),
},
{
title: 'Trigger Name',
render: (row: Partial<WorkflowRun>) => (
<Typography variant="body2" noWrap>
{row.substitutions?.TRIGGER_NAME}
</Typography>
),
},
{
title: 'Source',
field: 'source',