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

Closed
opened 2025-11-02 07:41:13 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @qwerty287 on GitHub (Sep 29, 2021).

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

Originally created by @qwerty287 on GitHub (Sep 29, 2021). ### 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_
GiteaMirror added the type/bugmodifies/api labels 2025-11-02 07:41:13 -06:00
Author
Owner

@noerw commented on GitHub (Sep 29, 2021):

can confirm with 1.14.7 and current main

@noerw commented on GitHub (Sep 29, 2021): can confirm with 1.14.7 and current main
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7909