Merge pull request #1393 from donatj/fix/CCMenuUrl

Corrects CC Menu url
This commit is contained in:
Brad Rydzewski 2016-01-04 13:35:10 -08:00
commit 26f81835b6

View file

@ -1,9 +1,12 @@
package controller
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/drone/drone/model"
"github.com/drone/drone/shared/httputil"
"github.com/drone/drone/store"
)
@ -73,6 +76,7 @@ func GetCC(c *gin.Context) {
return
}
cc := model.NewCC(repo, builds[0], "")
url := fmt.Sprintf("%s/%s/%d", httputil.GetURL(c.Request), repo.FullName, builds[0].Number)
cc := model.NewCC(repo, builds[0], url)
c.XML(200, cc)
}