Skip to content

Pull API returning null  #10025

@jolheiser

Description

@jolheiser
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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions