mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-09 08:02:27 +00:00
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
|
package controller
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
||||||
"github.com/drone/drone/model"
|
"github.com/drone/drone/model"
|
||||||
|
"github.com/drone/drone/shared/httputil"
|
||||||
"github.com/drone/drone/store"
|
"github.com/drone/drone/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -73,6 +76,7 @@ func GetCC(c *gin.Context) {
|
||||||
return
|
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)
|
c.XML(200, cc)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue