[API] Pull Request is null when branch was deleted #6613
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
modifies/api
This PR adds API routes or modifies them
type/bug
When a Pull Request was merged, the API endpoint
GET /api/v1/repo/<org>/<user>/pulls/<number>
returns null as soon as the branch is deleted (see [1]), while the web interface still lists all information about the PR (see [2]). Recreating the branch fixes the issue. The list of all pull-requests shows the same error (see [3]).This was already reported in #4595, but the issue was closed because there was no activity.
Examples on
try.gitea.io
:The text was updated successfully, but these errors were encountered: