1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Add a pseudo-id for deploys

This commit is contained in:
Chris Cummer 2018-04-07 23:46:52 -07:00 committed by Chris Cummer
parent 9bda045ce1
commit b216005385
3 changed files with 3 additions and 4 deletions

View File

@ -52,7 +52,7 @@ wtf:
newrelic:
applicationId: 10549735
enabled: true
deployCount: 5
deployCount: 7
position:
top: 4
left: 2

View File

@ -66,7 +66,8 @@ func (widget *Widget) contentFrom(deploys []nr.ApplicationDeployment) string {
for _, deploy := range deploys {
if (deploy.Revision != "") && wtf.Exclude(revisions, deploy.Revision) {
str = str + fmt.Sprintf(
" [green]%s[white] %-6s %s\n",
" %03d [green]%s[white] %-6s %s\n",
deploy.ID%1000,
deploy.Revision[0:8],
deploy.Timestamp.Format("Jan 2"),
wtf.NameFromEmail(deploy.User),

2
wtf.go
View File

@ -1,8 +1,6 @@
package main
import (
//"fmt"
//"os"
"time"
"github.com/rivo/tview"