Lesstep
Forgejo · Gitea · Codeberg · REST API · Checked October 25, 2026

Forgejo and Gitea: the changed files of a pull request

Forgejo and Gitea list the files a pull request changes at GET /repos/OWNER/REPO/pulls/NUMBER/files, a page at a time, from the merge base to the pull request's own head (refs/pull/NUMBER/head). Neither refuses a large pull request: every file is listed, page by page. The answers below are what codeberg.org (Forgejo) and gitea.com (Gitea) said on October 25, 2026, with the servers' source behind them.

HTTP/1.1 404 Not Found

{"message":"The target couldn't be found.","url":"https://codeberg.org/api/swagger","errors":[]}

404

Pages, and what a page holds

200, but changed_files does not match the list

What to do

Forgejo and Gitea pull requests in IntelliJ IDEA

Pull Request Inbox for Forgejo and Gitea, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, reads a pull request's changed files from this list, 50 a page, up to 1,000 files. Each file opens in the IDE's diff with the whole file read at the merge base and at the head commit. From version 1.0.20, when a pull request changes more than 1,000 files, the count of viewed files says that only the first files are listed and that git diff shows the rest; before, the list ended without saying so. Reading is free; approving, commenting and merging are Pro (US$1.50 a month, with a 30-day trial).

Forgejo, Gitea and Codeberg are names of their respective owners; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by the Forgejo project, Codeberg e.V., the Gitea project or JetBrains.

More: 404 "The target couldn't be found." and "not found" · 401 "token is required" and unknown tokens · "token does not have at least one of required scope(s)" · Forgejo and Gitea search refused (400, 422) · Forgejo and Gitea merge refused (405, 409) · Forgejo and Gitea merge when checks succeed refused (405, 409, 500) · Forgejo and Gitea review refused (422) · Forgejo and Gitea branch update refused (403, 409, 422) · Forgejo and Gitea pull request not created (409, 422, 403) · Forgejo and Gitea comment refused (403, 422, 400) · Forgejo and Gitea pull request plugins for IntelliJ IDEA, compared · 日本語