Skip to content

[API] /repos/{owner}/{repo}/pulls/{index} returns false for all permissions of the base/head branch repo #17181

Closed
@qwerty287

Description

@qwerty287

Gitea Version

(almost) latest main

Git Version

No response

Operating System

No response

How are you running Gitea?

Built from source, from cli

Database

No response

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

If I get a PR via the API, it returns the pull's head/base branch. The repos that are included in these information also return the permissions, but all values of these permissions (admin, push, pull) are false.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    modifies/apiThis PR adds API routes or modifies themtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions