Use REF_NAME instead of BRANCH_NAME
Signed-off-by: PurseChicken <chris@tschantz.name>
This commit is contained in:
@@ -237,7 +237,7 @@ export interface StorageSource {
|
||||
// @public (undocumented)
|
||||
export interface Substitutions {
|
||||
// (undocumented)
|
||||
BRANCH_NAME: string;
|
||||
REF_NAME: string;
|
||||
// (undocumented)
|
||||
COMMIT_SHA: string;
|
||||
// (undocumented)
|
||||
|
||||
@@ -81,7 +81,7 @@ export interface Options {
|
||||
export interface Substitutions {
|
||||
COMMIT_SHA: string;
|
||||
SHORT_SHA: string;
|
||||
BRANCH_NAME: string;
|
||||
REF_NAME: string;
|
||||
REPO_NAME: string;
|
||||
REVISION_ID: string;
|
||||
}
|
||||
|
||||
@@ -97,9 +97,9 @@ export const WorkflowRunDetails = (props: { entity: Entity }) => {
|
||||
<TableBody>
|
||||
<TableRow>
|
||||
<TableCell>
|
||||
<Typography noWrap>Branch</Typography>
|
||||
<Typography noWrap>Ref</Typography>
|
||||
</TableCell>
|
||||
<TableCell>{details.value?.substitutions.BRANCH_NAME}</TableCell>
|
||||
<TableCell>{details.value?.substitutions.REF_NAME}</TableCell>
|
||||
</TableRow>
|
||||
<TableRow>
|
||||
<TableCell>
|
||||
|
||||
@@ -35,7 +35,7 @@ describe('<WorkflowRunsTableView />', () => {
|
||||
substitutions: {
|
||||
COMMIT_SHA: 'e3adasd2e3adasd2e3adasd2',
|
||||
SHORT_SHA: 'f12j1231',
|
||||
BRANCH_NAME: 'main',
|
||||
REF_NAME: 'main',
|
||||
REPO_NAME: 'backstage',
|
||||
REVISION_ID: 'g123123',
|
||||
},
|
||||
|
||||
@@ -72,7 +72,7 @@ const generatedColumns: TableColumn[] = [
|
||||
title: 'Ref',
|
||||
render: (row: Partial<WorkflowRun>) => (
|
||||
<Typography variant="body2" noWrap>
|
||||
{row.substitutions?.BRANCH_NAME}
|
||||
{row.substitutions?.REF_NAME}
|
||||
</Typography>
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user