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:
parent
9bda045ce1
commit
b216005385
@ -52,7 +52,7 @@ wtf:
|
|||||||
newrelic:
|
newrelic:
|
||||||
applicationId: 10549735
|
applicationId: 10549735
|
||||||
enabled: true
|
enabled: true
|
||||||
deployCount: 5
|
deployCount: 7
|
||||||
position:
|
position:
|
||||||
top: 4
|
top: 4
|
||||||
left: 2
|
left: 2
|
||||||
|
@ -66,7 +66,8 @@ func (widget *Widget) contentFrom(deploys []nr.ApplicationDeployment) string {
|
|||||||
for _, deploy := range deploys {
|
for _, deploy := range deploys {
|
||||||
if (deploy.Revision != "") && wtf.Exclude(revisions, deploy.Revision) {
|
if (deploy.Revision != "") && wtf.Exclude(revisions, deploy.Revision) {
|
||||||
str = str + fmt.Sprintf(
|
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.Revision[0:8],
|
||||||
deploy.Timestamp.Format("Jan 2"),
|
deploy.Timestamp.Format("Jan 2"),
|
||||||
wtf.NameFromEmail(deploy.User),
|
wtf.NameFromEmail(deploy.User),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user