Use REF_NAME instead of BRANCH_NAME

Signed-off-by: PurseChicken <chris@tschantz.name>
This commit is contained in:
PurseChicken
2023-11-17 12:47:55 -08:00
parent 31474decad
commit c55d501b56
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ export interface StorageSource {
// @public (undocumented)
export interface Substitutions {
// (undocumented)
BRANCH_NAME: string;
REF_NAME: string;
// (undocumented)
COMMIT_SHA: string;
// (undocumented)
+1 -1
View File
@@ -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>
),
},