Skip to content

Commit

Permalink
Add xbar to display commit author in deployment list
Browse files Browse the repository at this point in the history
  • Loading branch information
BIwashi committed Mar 22, 2024
1 parent 6489453 commit dc00375
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/pipectl/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ func (c *pipectl) listDeployments(ctx context.Context) error {
Title: stageStatus,
},
},
xbar.Xbar{
Line: xbar.Line{
Title: fmt.Sprintf("%s %s", iconBustInSilhouette, d.Trigger.Commit.Author),
},
},
)
}

Expand Down Expand Up @@ -122,6 +127,7 @@ const (
iconMag = ":mag:" // 🔍
iconBabyChick = ":baby_chick:" // 🐤
iconHand = ":hand:" // ✋
iconBustInSilhouette = ":bust_in_silhouette:" // 👤
)

func makeStatusIcon(deployment *model.Deployment) string {
Expand Down

0 comments on commit dc00375

Please sign in to comment.