Missing API for "Automatically delete head branches" #24768
Answered
by
gr2m
yotamshapira
asked this question in
API and Webhooks
-
Hi, There is no REST API for the “Automatically delete head branches” setting. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
gr2m
Apr 25, 2021
Replies: 2 comments 1 reply
-
You can use the Does that work for you? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected
-
I think it does, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
PATCH /repos/{owner}/{repo}
endpoint (Update a repository). Thedelete_branch_on_merge
parameter is what you are looking for.Does that work for you?