mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 04:11:03 +00:00
Fixture handler needed an update after Gitea logic change
This commit is contained in:
parent
19659e7c93
commit
3357750e37
1 changed files with 6 additions and 1 deletions
|
@ -96,9 +96,14 @@ func getUserRepos(c *gin.Context) {
|
|||
case "token repos_not_found":
|
||||
c.String(404, "")
|
||||
default:
|
||||
page := c.Query("page")
|
||||
if page != "" && page != "1" {
|
||||
c.String(200, "[]")
|
||||
} else {
|
||||
c.String(200, userRepoPayload)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func getVersion(c *gin.Context) {
|
||||
c.JSON(200, map[string]interface{}{"version": "1.12"})
|
||||
|
|
Loading…
Reference in a new issue