New route to view user's trace through repository
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
084244449c
commit
61f4795511
2 changed files with 14 additions and 0 deletions
|
@ -319,6 +319,12 @@ func declareAPIAuthRepositoriesRoutes(router *gin.RouterGroup) {
|
|||
|
||||
TriggerTests(c, work, repo, u)
|
||||
})
|
||||
|
||||
repositoriesRoutes.GET("/traces", func(c *gin.Context) {
|
||||
repo := c.MustGet("repository").(*Repository)
|
||||
|
||||
c.Redirect(http.StatusFound, fmt.Sprintf("%s/%s", droneEndpoint, repo.TestsRef))
|
||||
})
|
||||
}
|
||||
|
||||
type GitLabWebhook struct {
|
||||
|
|
Reference in a new issue