mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-14 22:17:11 +00:00
Fixture handler needed an update after Gitea logic change
This commit is contained in:
@@ -96,7 +96,12 @@ func getUserRepos(c *gin.Context) {
|
|||||||
case "token repos_not_found":
|
case "token repos_not_found":
|
||||||
c.String(404, "")
|
c.String(404, "")
|
||||||
default:
|
default:
|
||||||
c.String(200, userRepoPayload)
|
page := c.Query("page")
|
||||||
|
if page != "" && page != "1" {
|
||||||
|
c.String(200, "[]")
|
||||||
|
} else {
|
||||||
|
c.String(200, userRepoPayload)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user