Merge pull request #1393 from donatj/fix/CCMenuUrl
Corrects CC Menu url
This commit is contained in:
commit
26f81835b6
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue