API does not return object_format_name #13115

Closed
opened 2025-11-02 10:31:34 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @NicolasChusseau on GitHub (Jun 7, 2024).

Description

When I try to create a new pull request using the api "/repos/{owner}/{repo}/pulls", the pr is correctly created but in the response, the attribute 'object_format_name' should be "sha1" or "sha256" but I have an empty string.

Gitea Version

1.22.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Expected according to the swagger 1.22.0
image
Actual on postman
image

Git Version

No response

Operating System

No response

How are you running Gitea?

I was using postman.

Database

None

Originally created by @NicolasChusseau on GitHub (Jun 7, 2024). ### Description When I try to create a new pull request using the api "/repos/{owner}/{repo}/pulls", the pr is correctly created but in the response, the attribute 'object_format_name' should be "sha1" or "sha256" but I have an empty string. ### Gitea Version 1.22.0 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots Expected according to the swagger 1.22.0 ![image](https://github.com/go-gitea/gitea/assets/122353423/ca828dac-2ff4-450c-9aec-99a515263cf0) Actual on postman ![image](https://github.com/go-gitea/gitea/assets/122353423/8d470733-25d5-4c90-af4d-622368edbb1f) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? I was using postman. ### Database None
GiteaMirror added the type/bug label 2025-11-02 10:31:34 -06:00
Author
Owner

@lunny commented on GitHub (Jun 7, 2024):

Duplicate of #31117

@lunny commented on GitHub (Jun 7, 2024): Duplicate of #31117
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13115