Missing API for "Automatically delete head branches"


There is no REST API for the “Automatically delete head branches” setting.
I tried finding it here: Endpoints available for GitHub Apps - GitHub Docs


You can use the PATCH /repos/{owner}/{repo} endpoint (Update a repository). The delete_branch_on_merge parameter is what you are looking for.

Does that work for you?

1 Like

I think it does, thanks!

1 Like