Closed
Description
Description
When accessing an API repo pulls URL, I get a HTTP 500 response. The API URL I'm using is: https://projects.torsion.org/api/v1/repos/borgmatic-collective/borgmatic/pulls?state=closed
Here is the corresponding Gitea log from that request:
2025/06/10 19:25:15 HTTPRequest [W] router: failed GET /api/v1/repos/borgmatic-collective/borgmatic/pulls?state=closed for 10.89.0.32:59014, panic in 105.3ms @ repo/pull.go:46(repo.ListPullRequests), err=runtime error: invalid memory address or nil pointer dereference
/go/src/code.gitea.io/gitea/routers/api/v1/repo/pull.go:147 (0x290c765)
/go/src/code.gitea.io/gitea/routers/api/v1/api.go:1757 (0x2965af6)
Here is the web interface for the corresponding project's pull requests: https://projects.torsion.org/borgmatic-collective/borgmatic/pulls
Gitea Version
1.24.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
relevant logs included inline above
Screenshots
No response
Git Version
2.49.0
Operating System
Linux Manjaro stable
How are you running Gitea?
I'm running Gitea via Podman (and Docker Compose) in a container, using the official image from docker.io/gitea/gitea
. Requests to Gitea are reverse proxied through Traefik.
Database
PostgreSQL