Merge pull request #4864 from tadashi0713/show_workflow_name_github_actions

Show workflow name in GitHub Actions
This commit is contained in:
Ben Lambert
2021-03-08 09:58:15 +01:00
committed by GitHub
4 changed files with 17 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-github-actions': minor
---
Show workflow name
@@ -210,6 +210,12 @@ export const WorkflowRunDetails = ({ entity }: { entity: Entity }) => {
</TableCell>
<TableCell>{details.value?.head_commit.id}</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Typography noWrap>Workflow</Typography>
</TableCell>
<TableCell>{details.value?.name}</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Typography noWrap>Status</Typography>
@@ -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[] = [
</Typography>
),
},
{
title: 'Workflow',
field: 'workflowName',
},
{
title: 'Status',
width: '150px',
@@ -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 () => {