mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-03-03 15:22:25 +02:00
Added last build time
This commit is contained in:
parent
2f76696226
commit
ec825996c9
@ -2,6 +2,7 @@ package model
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
"time"
|
||||
)
|
||||
|
||||
type CCProjects struct {
|
||||
@ -34,8 +35,8 @@ func NewCC(r *Repo, c *Commit, url string) *CCProjects {
|
||||
c.Status != StatusEnqueue {
|
||||
proj.Activity = "Sleeping"
|
||||
proj.LastBuildStatus = c.Status
|
||||
proj.LastBuildTime = time.Unix(c.Started, 0).Format(time.RFC3339)
|
||||
proj.LastBuildLabel = c.ShaShort()
|
||||
proj.LastBuildTime = "" // 2006-01-02T15:04:05.000+0000
|
||||
}
|
||||
|
||||
// If the build is not running, and not successful,
|
||||
|
Loading…
x
Reference in New Issue
Block a user