Skip to content

Commit 57a57c1

Browse files
authored
feat(cli): show branch ref to list command (#4019)
1 parent e78a925 commit 57a57c1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/branches/list/list.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,18 @@ func Run(ctx context.Context, fsys afero.Fs) error {
2222

2323
switch utils.OutputFormat.Value {
2424
case utils.OutputPretty:
25-
table := `|ID|NAME|DEFAULT|GIT BRANCH|STATUS|CREATED AT (UTC)|UPDATED AT (UTC)|
26-
|-|-|-|-|-|-|-|
25+
table := `|ID|BRANCH PROJECT ID|NAME|DEFAULT|GIT BRANCH|STATUS|CREATED AT (UTC)|UPDATED AT (UTC)|
26+
|-|-|-|-|-|-|-|-|
2727
`
2828
for _, branch := range branches {
2929
gitBranch := " "
3030
if branch.GitBranch != nil {
3131
gitBranch = *branch.GitBranch
3232
}
3333
table += fmt.Sprintf(
34-
"|`%s`|`%s`|`%t`|`%s`|`%s`|`%s`|`%s`|\n",
34+
"|`%s`|`%s`|`%s`|`%t`|`%s`|`%s`|`%s`|`%s`|\n",
3535
branch.Id,
36+
branch.ProjectRef,
3637
strings.ReplaceAll(branch.Name, "|", "\\|"),
3738
branch.IsDefault,
3839
strings.ReplaceAll(gitBranch, "|", "\\|"),

0 commit comments

Comments
 (0)