diff --git a/.changeset/serious-deers-laugh.md b/.changeset/serious-deers-laugh.md new file mode 100644 index 0000000000..1c17242f30 --- /dev/null +++ b/.changeset/serious-deers-laugh.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-github-actions': minor +--- + +Show workflow name diff --git a/plugins/github-actions/src/components/WorkflowRunDetails/WorkflowRunDetails.tsx b/plugins/github-actions/src/components/WorkflowRunDetails/WorkflowRunDetails.tsx index 762561582c..b5915f400c 100644 --- a/plugins/github-actions/src/components/WorkflowRunDetails/WorkflowRunDetails.tsx +++ b/plugins/github-actions/src/components/WorkflowRunDetails/WorkflowRunDetails.tsx @@ -210,6 +210,12 @@ export const WorkflowRunDetails = ({ entity }: { entity: Entity }) => { {details.value?.head_commit.id} + + + Workflow + + {details.value?.name} + Status diff --git a/plugins/github-actions/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx b/plugins/github-actions/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx index 6a3b88b052..e62704405d 100644 --- a/plugins/github-actions/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx +++ b/plugins/github-actions/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx @@ -41,6 +41,7 @@ import { Entity } from '@backstage/catalog-model'; import { readGitHubIntegrationConfigs } from '@backstage/integration'; export type WorkflowRun = { + workflowName: string; id: string; message: string; url?: string; @@ -86,6 +87,10 @@ const generatedColumns: TableColumn[] = [ ), }, + { + title: 'Workflow', + field: 'workflowName', + }, { title: 'Status', width: '150px', diff --git a/plugins/github-actions/src/components/useWorkflowRuns.ts b/plugins/github-actions/src/components/useWorkflowRuns.ts index 4a4ded2d94..eb453e6221 100644 --- a/plugins/github-actions/src/components/useWorkflowRuns.ts +++ b/plugins/github-actions/src/components/useWorkflowRuns.ts @@ -58,6 +58,7 @@ export function useWorkflowRuns({ setTotal(workflowRunsData.total_count); // Transformation here return workflowRunsData.workflow_runs.map(run => ({ + workflowName: run.name, message: run.head_commit.message, id: `${run.id}`, onReRunClick: async () => {