mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 12:21:03 +00:00
commit
24cbc363a0
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ package model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CCProjects struct {
|
type CCProjects struct {
|
||||||
|
@ -34,8 +35,8 @@ func NewCC(r *Repo, c *Commit, url string) *CCProjects {
|
||||||
c.Status != StatusEnqueue {
|
c.Status != StatusEnqueue {
|
||||||
proj.Activity = "Sleeping"
|
proj.Activity = "Sleeping"
|
||||||
proj.LastBuildStatus = c.Status
|
proj.LastBuildStatus = c.Status
|
||||||
|
proj.LastBuildTime = time.Unix(c.Started, 0).Format(time.RFC3339)
|
||||||
proj.LastBuildLabel = c.ShaShort()
|
proj.LastBuildLabel = c.ShaShort()
|
||||||
proj.LastBuildTime = "" // 2006-01-02T15:04:05.000+0000
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the build is not running, and not successful,
|
// If the build is not running, and not successful,
|
||||||
|
|
Loading…
Reference in a new issue