-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Description
- Gitea version (or commit ref): 51f6a7a
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
https://gitea.com/api/swagger#/repository/repoGetPullRequest
- Yes (provide example URL)
owner = gitea
repo = go-sdk
index = 217
Description
I deleted my fork of go-sdk
and now the API call is "failing" because it returns nil
.
Note "failing" because it does return a response, but it's null
.
This is the offending func:
Line 18 in 3c8a5d8
func ToAPIPullRequest(pr *models.PullRequest) *api.PullRequest { |
Shouldn't be too hard to fix, but we need to distinguish what qualifies returning nil
rather than as much data as possible, because currently returning null
in the JSON response means PRs will get missed by services using API calls.
6543