Add ability to change "default_delete_branch_after_merge" using api #9518

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

Originally created by @jsalatiel on GitHub (Sep 5, 2022).

Feature Description

Currently there is no way to set ( afaik ) the setting default_delete_branch_after_merge using api.
It appears that setting is not exposed at all on api and can only be set using WEBUI.
If I GET https://gitea/api/v1/repos/owner/repoName I do not see that option as repo settings, so I can not PATCH it.

Screenshots

No response

Originally created by @jsalatiel on GitHub (Sep 5, 2022). ### Feature Description Currently there is no way to set ( afaik ) the setting default_delete_branch_after_merge using api. It appears that setting is not exposed at all on api and can only be set using WEBUI. If I GET https://gitea/api/v1/repos/owner/repoName I do not see that option as repo settings, so I can not PATCH it. ### Screenshots _No response_
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 08:41:28 -06:00
Author
Owner

@jsalatiel commented on GitHub (Sep 5, 2022):

It looks like a bug, closing this.

@jsalatiel commented on GitHub (Sep 5, 2022): It looks like a bug, closing this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9518