Skip to content

default_delete_branch_after_merge doesn't work #19069

Closed
@sprnza

Description

@sprnza

Gitea Version

1.16.0

Git Version

2.30.2

Operating System

Debian 10

How are you running Gitea?

Gitea is running from docker container

Database

PostgreSQL

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

I've set default_delete_branch_after_merge to True using this:

http --auth user:pass PATCH https://try.gitea.io/api/v1/repos/user/TestRepo default_delete_branch_after_merge:=true

got this reply:

HTTP/1.1 200 OK

But when I create a PR a get checkbox "Delete branch 'test-branch' unchecked in UI and after merge the branch is not being deleted (so it's not just an UI issue).

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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions