diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a37c5e36..454eebecd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed revision selection so the 64-revision cap prefers the newest matching branches and tags instead of pruning by ref-name order. [#1122](https://github.com/sourcebot-dev/sourcebot/pull/1122) +- Fixed infinite pagination loop in Gitea/Forgejo when an API token can only see a subset of org repos (the `x-total-count` header reports org total while token returns fewer items). [#1130](https://github.com/sourcebot-dev/sourcebot/pull/1130) ## [4.16.11] - 2026-04-17 diff --git a/packages/backend/src/gitea.ts b/packages/backend/src/gitea.ts index 23f5c520f..ac7566ee8 100644 --- a/packages/backend/src/gitea.ts +++ b/packages/backend/src/gitea.ts @@ -254,6 +254,9 @@ const paginate = async (request: (page: number) => Promise